Title: [101462] trunk/Source/WebKit/efl
- Revision
- 101462
- Author
- [email protected]
- Date
- 2011-11-30 01:22:10 -0800 (Wed, 30 Nov 2011)
Log Message
[EFL] Added DEFAULT_CACHE_SIZE define.
https://bugs.webkit.org/show_bug.cgi?id=73120
Patch by Tomasz Morawski <[email protected]> on 2011-11-30
Reviewed by Filip Pizlo.
Remove form code 40960000 value used in code directly and replaced it by DEFAULT_CACHE_SIZE define. The code
looks cleaner now.
* ewk/ewk_tiled_matrix.cpp:
(ewk_tile_matrix_new):
Modified Paths
Diff
Modified: trunk/Source/WebKit/efl/ChangeLog (101461 => 101462)
--- trunk/Source/WebKit/efl/ChangeLog 2011-11-30 09:12:24 UTC (rev 101461)
+++ trunk/Source/WebKit/efl/ChangeLog 2011-11-30 09:22:10 UTC (rev 101462)
@@ -1,3 +1,16 @@
+2011-11-30 Tomasz Morawski <[email protected]>
+
+ [EFL] Added DEFAULT_CACHE_SIZE define.
+ https://bugs.webkit.org/show_bug.cgi?id=73120
+
+ Reviewed by Filip Pizlo.
+
+ Remove form code 40960000 value used in code directly and replaced it by DEFAULT_CACHE_SIZE define. The code
+ looks cleaner now.
+
+ * ewk/ewk_tiled_matrix.cpp:
+ (ewk_tile_matrix_new):
+
2011-11-28 JungJik Lee <[email protected]>
[EFL] Rename abbreviated value names to cpp style names.
Modified: trunk/Source/WebKit/efl/ewk/ewk_tiled_matrix.cpp (101461 => 101462)
--- trunk/Source/WebKit/efl/ewk/ewk_tiled_matrix.cpp 2011-11-30 09:12:24 UTC (rev 101461)
+++ trunk/Source/WebKit/efl/ewk/ewk_tiled_matrix.cpp 2011-11-30 09:22:10 UTC (rev 101462)
@@ -64,6 +64,9 @@
#endif
};
+// Default 40 MB size of newly created cache
+static const size_t DEFAULT_CACHE_SIZE = 40 * 1024 * 1024;
+
#ifdef DEBUG_MEM_LEAKS
static uint64_t tiles_leaked = 0;
static uint64_t bytes_leaked = 0;
@@ -210,7 +213,7 @@
if (tileUnusedCache)
tileMatrix->tilieUnusedCache = ewk_tile_unused_cache_ref(tileUnusedCache);
else {
- tileMatrix->tilieUnusedCache = ewk_tile_unused_cache_new(40960000);
+ tileMatrix->tilieUnusedCache = ewk_tile_unused_cache_new(DEFAULT_CACHE_SIZE);
if (!tileMatrix->tilieUnusedCache) {
ERR("no cache of unused tile!");
eina_matrixsparse_free(tileMatrix->matrix);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes