OSDN Git Service

Unify the the tile size for base tiles and layers
authorTeng-Hui Zhu <ztenghui@google.com>
Fri, 29 Jul 2011 20:52:06 +0000 (13:52 -0700)
committerTeng-Hui Zhu <ztenghui@google.com>
Fri, 29 Jul 2011 20:52:06 +0000 (13:52 -0700)
In order to use the shared Surface Texture to support both base tiles and
layers, the tile size has to be the same.
Separate this change out to catch any potential perf regression or boost.

bug:5044597
Change-Id: Ib296def7595ea605fa96745f333ec8ef6d199293

Source/WebCore/platform/graphics/android/TilesManager.cpp

index 398cb09..6a294b0 100644 (file)
@@ -68,8 +68,8 @@
 #define EXPANDED_TILE_BOUNDS_X 0
 #define EXPANDED_TILE_BOUNDS_Y 0
 #define MAX_TEXTURE_ALLOCATION 3+(6+EXPANDED_TILE_BOUNDS_X*2)*(4+EXPANDED_TILE_BOUNDS_Y*2)*2
-#define TILE_WIDTH 300
-#define TILE_HEIGHT 300
+#define TILE_WIDTH 256
+#define TILE_HEIGHT 256
 #define LAYER_TILE_WIDTH 256
 #define LAYER_TILE_HEIGHT 256
 #define LAYER_TILES 10