Title: [98890] trunk/Source/WebKit/efl
- Revision
- 98890
- Author
- [email protected]
- Date
- 2011-10-31 15:31:16 -0700 (Mon, 31 Oct 2011)
Log Message
[EFL] Make cache flush when max size of cache has been changed
https://bugs.webkit.org/show_bug.cgi?id=70805
Patch by Tomasz Morawski <[email protected]> on 2011-10-31
Reviewed by Ryosuke Niwa.
Calls the ewk_tile_unused_cache_auto_flush function after changing max
size of cache when ewk_tile_unused_cache_max_set is called. Without
this change when new value is lower than the old one the cache may use
more memory than max value set. This situation is not expected by the
user.
* ewk/ewk_tiled_model.cpp:
(ewk_tile_unused_cache_max_set):
Modified Paths
Diff
Modified: trunk/Source/WebKit/efl/ChangeLog (98889 => 98890)
--- trunk/Source/WebKit/efl/ChangeLog 2011-10-31 22:24:20 UTC (rev 98889)
+++ trunk/Source/WebKit/efl/ChangeLog 2011-10-31 22:31:16 UTC (rev 98890)
@@ -1,3 +1,19 @@
+2011-10-31 Tomasz Morawski <[email protected]>
+
+ [EFL] Make cache flush when max size of cache has been changed
+ https://bugs.webkit.org/show_bug.cgi?id=70805
+
+ Reviewed by Ryosuke Niwa.
+
+ Calls the ewk_tile_unused_cache_auto_flush function after changing max
+ size of cache when ewk_tile_unused_cache_max_set is called. Without
+ this change when new value is lower than the old one the cache may use
+ more memory than max value set. This situation is not expected by the
+ user.
+
+ * ewk/ewk_tiled_model.cpp:
+ (ewk_tile_unused_cache_max_set):
+
2011-10-28 Jochen Eisinger <[email protected]>
Rename a number of methods mentioning _javascript_ to just Script instead
Modified: trunk/Source/WebKit/efl/ewk/ewk_tiled_model.cpp (98889 => 98890)
--- trunk/Source/WebKit/efl/ewk/ewk_tiled_model.cpp 2011-10-31 22:24:20 UTC (rev 98889)
+++ trunk/Source/WebKit/efl/ewk/ewk_tiled_model.cpp 2011-10-31 22:31:16 UTC (rev 98890)
@@ -633,7 +633,11 @@
void ewk_tile_unused_cache_max_set(Ewk_Tile_Unused_Cache* tileUnusedCache, size_t max)
{
EINA_SAFETY_ON_NULL_RETURN(tileUnusedCache);
+ size_t oldMax = tileUnusedCache->memory.max;
tileUnusedCache->memory.max = max;
+ /* Cache flush when new max is lower then old one */
+ if (oldMax > max)
+ ewk_tile_unused_cache_auto_flush(tileUnusedCache);
}
size_t ewk_tile_unused_cache_max_get(const Ewk_Tile_Unused_Cache* tileUnusedCache)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes