Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(742)

Unified Diff: cc/tiled_layer_impl_unittest.cc

Issue 11232051: Remove static thread pointers from CC (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address code review comments and fix all cc_unittests Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/tiled_layer_impl_unittest.cc
diff --git a/cc/tiled_layer_impl_unittest.cc b/cc/tiled_layer_impl_unittest.cc
index 1c6fd8b5da79f12c1fb3625e325a9abbc39491c7..d8db1681af1df4d05d4269c05b9df28780385a20 100644
--- a/cc/tiled_layer_impl_unittest.cc
+++ b/cc/tiled_layer_impl_unittest.cc
@@ -46,8 +46,6 @@ static scoped_ptr<TiledLayerImpl> createLayer(const IntSize& tileSize, const Int
TEST(TiledLayerImplTest, emptyQuadList)
{
- DebugScopedSetImplThread scopedImplThread;
-
const IntSize tileSize(90, 90);
const int numTilesX = 8;
const int numTilesY = 4;
@@ -101,8 +99,6 @@ TEST(TiledLayerImplTest, emptyQuadList)
TEST(TiledLayerImplTest, checkerboarding)
{
- DebugScopedSetImplThread scopedImplThread;
-
const IntSize tileSize(10, 10);
const int numTilesX = 2;
const int numTilesY = 2;
@@ -162,8 +158,6 @@ static void getQuads(QuadList& quads, SharedQuadStateList& sharedStates, IntSize
static void coverageVisibleRectOnTileBoundaries(LayerTilingData::BorderTexelOption borders)
{
- DebugScopedSetImplThread scopedImplThread;
-
IntSize layerSize(1000, 1000);
QuadList quads;
SharedQuadStateList sharedStates;
@@ -174,8 +168,6 @@ WITH_AND_WITHOUT_BORDER_TEST(coverageVisibleRectOnTileBoundaries);
static void coverageVisibleRectIntersectsTiles(LayerTilingData::BorderTexelOption borders)
{
- DebugScopedSetImplThread scopedImplThread;
-
// This rect intersects the middle 3x3 of the 5x5 tiles.
IntPoint topLeft(65, 73);
IntPoint bottomRight(182, 198);
@@ -191,8 +183,6 @@ WITH_AND_WITHOUT_BORDER_TEST(coverageVisibleRectIntersectsTiles);
static void coverageVisibleRectIntersectsBounds(LayerTilingData::BorderTexelOption borders)
{
- DebugScopedSetImplThread scopedImplThread;
-
IntSize layerSize(220, 210);
IntRect visibleContentRect(IntPoint(), layerSize);
QuadList quads;
@@ -204,8 +194,6 @@ WITH_AND_WITHOUT_BORDER_TEST(coverageVisibleRectIntersectsBounds);
TEST(TiledLayerImplTest, textureInfoForLayerNoBorders)
{
- DebugScopedSetImplThread scopedImplThread;
-
IntSize tileSize(50, 50);
IntSize layerSize(250, 250);
QuadList quads;
@@ -225,8 +213,6 @@ TEST(TiledLayerImplTest, textureInfoForLayerNoBorders)
TEST(TiledLayerImplTest, tileOpaqueRectForLayerNoBorders)
{
- DebugScopedSetImplThread scopedImplThread;
-
IntSize tileSize(50, 50);
IntSize layerSize(250, 250);
QuadList quads;

Powered by Google App Engine
This is Rietveld 408576698