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

Unified Diff: cc/render_surface_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/rate_limiter.cc ('k') | cc/renderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/render_surface_unittest.cc
===================================================================
--- cc/render_surface_unittest.cc (revision 165906)
+++ cc/render_surface_unittest.cc (working copy)
@@ -39,6 +39,9 @@
// This test checks that surfacePropertyChanged() has the correct behavior.
//
+ // This will fake that we are on the correct thread for testing purposes.
+ DebugScopedSetImplThread setImplThread;
+
scoped_ptr<LayerImpl> owningLayer = LayerImpl::create(1);
owningLayer->createRenderSurface();
ASSERT_TRUE(owningLayer->renderSurface());
@@ -73,6 +76,9 @@
TEST(RenderSurfaceTest, sanityCheckSurfaceCreatesCorrectSharedQuadState)
{
+ // This will fake that we are on the correct thread for testing purposes.
+ DebugScopedSetImplThread setImplThread;
+
scoped_ptr<LayerImpl> rootLayer = LayerImpl::create(1);
scoped_ptr<LayerImpl> owningLayer = LayerImpl::create(2);
@@ -124,6 +130,9 @@
TEST(RenderSurfaceTest, sanityCheckSurfaceCreatesCorrectRenderPass)
{
+ // This will fake that we are on the correct thread for testing purposes.
+ DebugScopedSetImplThread setImplThread;
+
scoped_ptr<LayerImpl> rootLayer = LayerImpl::create(1);
scoped_ptr<LayerImpl> owningLayer = LayerImpl::create(2);
« no previous file with comments | « cc/rate_limiter.cc ('k') | cc/renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698