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

Unified Diff: cc/tiled_layer_impl_unittest.cc

Issue 11369071: A speculative Revert for r165872 - Remove static thread pointers from CC, attempt 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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
« no previous file with comments | « cc/thread_proxy.cc ('k') | cc/tiled_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « cc/thread_proxy.cc ('k') | cc/tiled_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698