Opera 12.15 Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

module.tweaks 4.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. TWEAK_IMG_FULL_SPEED_GIF emil
  2. IE and older versions of some browsers never let gif animations animate faster than with a 100 ms duration.
  3. If you enable this tweak, we will respect the value from the gif file, except when it is 10 ms and below (Then we will use 100 ms duration).
  4. Category: setting
  5. Define: IMG_FULL_SPEED_GIF
  6. Depends on: nothing
  7. Enabled for: desktop, smartphone, tv, minimal
  8. Disabled for: mini
  9. TWEAK_IMG_CACHE_UNUSED_IMAGES timj
  10. Normally the image cache will throw out images when they are no longer
  11. in a loaded document. This means when going from one page to a subpage
  12. all images on both pages must be re-decoded. In order to avoid this it
  13. is possible to keep unused images in the cache as long as the image
  14. cache is not full.
  15. Category: setting
  16. Define: IMG_CACHE_UNUSED_IMAGES
  17. Depends on: nothing
  18. Enabled for: desktop, smartphone, tv, minimal, mini
  19. Disabled for: none
  20. TWEAK_IMG_CACHE_MULTIPLE_ANIMATION_FRAMES timj
  21. Allow the image cache to cache multiple frames of an animated image.
  22. The frames will be stored in a separate cache with the size 1Mb + image
  23. cache size / 4. Caching multiple frames requires more memory, but it
  24. usually improves perfromance since the frames does not need to be decoded
  25. every time they are used.
  26. Category: memory
  27. Define: IMG_CACHE_MULTIPLE_ANIMATION_FRAMES
  28. Depends on: nothing
  29. Enabled for: desktop, tv
  30. Disabled for: smartphone, minimal, mini
  31. TWEAK_IMG_INPLACE_COLOR_CONVERSION timj
  32. Convert between color formats (such as BGRA and RGBA) inplace instead of
  33. using an extra array for it. If the conversion is done inplace the format
  34. much be switched back after it is used, which takes more time.
  35. Category: memory
  36. Define: IMG_INPLACE_COLOR_CONVERSION
  37. Depends on: nothing
  38. Enabled for: smartphone, minimal
  39. Disabled for: desktop, tv, mini
  40. TWEAK_IMG_TIME_LIMITED_CACHE timj
  41. Limit how long images can be stored in the cache before they are throw out.
  42. If this tweak is off the images will stay in the cache until the cache is
  43. full, if the tweak is on the images will be thrown out when they have not
  44. been visible for a while.
  45. Category: setting
  46. Define: IMG_TIME_LIMITED_CACHE
  47. Depends on: nothing
  48. Enabled for: desktop, smartphone, minimal, mini
  49. Disabled for: tv
  50. TWEAK_IMG_CACHE_TIME_LIMIT timj
  51. The time limit used for TWEAK_IMG_TIME_LIMITED_CACHE. This is how long
  52. the image cache will wait before throwing out unused images.
  53. Category: setting
  54. Define: IMG_CACHE_TIME_LIMIT
  55. Value: 600
  56. Enabled for: none
  57. Disabled for: desktop, smartphone, tv, minimal, mini
  58. Depends on: TWEAK_IMG_TIME_LIMITED_CACHE
  59. TWEAK_IMG_GRACE_TIME wonko
  60. Sometimes images are marked as no longer visible due to a
  61. MarkExtraDirty-reflow removing its layout box. these images
  62. may still be visible, in which case the next paint traversal
  63. will mark them as such again. Because purging the image cache
  64. may happen between the reflow and the traverse this can cause
  65. images to be needlessly kicked out of the image cache only to
  66. be subsequently redecoded. To remedy this a grace time can be
  67. used, signaling that the image must not be purged until after
  68. a specified amount of time has passed. This tweak controlls
  69. how long that time is (msecs). For more information about the
  70. functionality, see documentation of BeginGraceTime in
  71. ImageManager.
  72. Category: setting
  73. Define: IMG_GRACE_TIME
  74. Value: 5000
  75. Enabled for: none
  76. Disabled for: desktop, smartphone, tv, minimal, mini
  77. Depends on: nothing
  78. TWEAK_IMG_GRACE_TIME_SLOT_COUNT wonko
  79. Number of empty grace time slots to keep around. Having an
  80. empty grace time slot available will remove the need for
  81. allocation and deallocation of a slot when a reflow is
  82. triggered. This tweak is realated to the grace time set in
  83. TWEAK_IMG_GRACE_TIME - the longer the grace time, the more
  84. concurrent slots may be needed.
  85. Category: setting
  86. Define: IMG_GRACE_TIME_SLOT_COUNT
  87. Value: 5
  88. Enabled for: none
  89. Disabled for: desktop, smartphone, tv, minimal, mini
  90. Depends on: nothing
  91. TWEAK_IMG_TOGGLE_CACHE_UNUSED_IMAGES agatti
  92. Lets platform code override the value of
  93. TWEAK_IMG_CACHE_UNUSED_IMAGES at runtime, instead of relying
  94. upon a compile-time setting. Changes in unused images caching
  95. strategy affect all images currently in cache.
  96. Category: setting
  97. Define: IMG_TOGGLE_CACHE_UNUSED_IMAGES
  98. Depends on: nothing
  99. Disabled for: desktop, smartphone, tv, minimal, mini
  100. Enabled for: none