| Index: cc/tiled_layer_impl_unittest.cc
|
| ===================================================================
|
| --- cc/tiled_layer_impl_unittest.cc (revision 165906)
|
| +++ cc/tiled_layer_impl_unittest.cc (working copy)
|
| @@ -46,6 +46,8 @@
|
|
|
| TEST(TiledLayerImplTest, emptyQuadList)
|
| {
|
| + DebugScopedSetImplThread scopedImplThread;
|
| +
|
| const gfx::Size tileSize(90, 90);
|
| const int numTilesX = 8;
|
| const int numTilesY = 4;
|
| @@ -99,6 +101,8 @@
|
|
|
| TEST(TiledLayerImplTest, checkerboarding)
|
| {
|
| + DebugScopedSetImplThread scopedImplThread;
|
| +
|
| const gfx::Size tileSize(10, 10);
|
| const int numTilesX = 2;
|
| const int numTilesY = 2;
|
| @@ -158,6 +162,8 @@
|
|
|
| static void coverageVisibleRectOnTileBoundaries(LayerTilingData::BorderTexelOption borders)
|
| {
|
| + DebugScopedSetImplThread scopedImplThread;
|
| +
|
| gfx::Size layerSize(1000, 1000);
|
| QuadList quads;
|
| SharedQuadStateList sharedStates;
|
| @@ -168,6 +174,8 @@
|
|
|
| static void coverageVisibleRectIntersectsTiles(LayerTilingData::BorderTexelOption borders)
|
| {
|
| + DebugScopedSetImplThread scopedImplThread;
|
| +
|
| // This rect intersects the middle 3x3 of the 5x5 tiles.
|
| gfx::Point topLeft(65, 73);
|
| gfx::Point bottomRight(182, 198);
|
| @@ -183,6 +191,8 @@
|
|
|
| static void coverageVisibleRectIntersectsBounds(LayerTilingData::BorderTexelOption borders)
|
| {
|
| + DebugScopedSetImplThread scopedImplThread;
|
| +
|
| gfx::Size layerSize(220, 210);
|
| gfx::Rect visibleContentRect(gfx::Point(), layerSize);
|
| QuadList quads;
|
| @@ -194,6 +204,8 @@
|
|
|
| TEST(TiledLayerImplTest, textureInfoForLayerNoBorders)
|
| {
|
| + DebugScopedSetImplThread scopedImplThread;
|
| +
|
| gfx::Size tileSize(50, 50);
|
| gfx::Size layerSize(250, 250);
|
| QuadList quads;
|
| @@ -213,6 +225,8 @@
|
|
|
| TEST(TiledLayerImplTest, tileOpaqueRectForLayerNoBorders)
|
| {
|
| + DebugScopedSetImplThread scopedImplThread;
|
| +
|
| gfx::Size tileSize(50, 50);
|
| gfx::Size layerSize(250, 250);
|
| QuadList quads;
|
|
|