https://bugs.webkit.org/show_bug.cgi?id=73120
Patch by Tomasz Morawski <t.morawski@samsung.com> 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):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@101462
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2011-11-30 Tomasz Morawski <t.morawski@samsung.com>
+
+ [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 <jungjik.lee@samsung.com>
[EFL] Rename abbreviated value names to cpp style names.
#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;
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);