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

Unified Diff: cc/nine_patch_layer_unittest.cc

Issue 11232051: Remove static thread pointers from CC (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Apply code review comments 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/nine_patch_layer_impl_unittest.cc ('k') | cc/occlusion_tracker_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/nine_patch_layer_unittest.cc
diff --git a/cc/nine_patch_layer_unittest.cc b/cc/nine_patch_layer_unittest.cc
index 926c53a5c497cab7c284b81c5fb3ea2a9a80f320..3958b9299f4d91f5aae9759a994778b1b36721fd 100644
--- a/cc/nine_patch_layer_unittest.cc
+++ b/cc/nine_patch_layer_unittest.cc
@@ -35,7 +35,7 @@ public:
MockLayerTreeHost()
: LayerTreeHost(&m_fakeClient, LayerTreeSettings())
{
- initialize();
+ initialize(scoped_ptr<Thread>(NULL));
}
private:
@@ -49,6 +49,8 @@ public:
{
}
+ Proxy* proxy() const { return m_layerTreeHost->proxy(); }
+
protected:
virtual void SetUp()
{
@@ -106,8 +108,8 @@ TEST_F(NinePatchLayerTest, triggerFullUploadOnceWhenChangingBitmap)
scoped_ptr<GraphicsContext> context;
scoped_ptr<ResourceProvider> resourceProvider;
{
- DebugScopedSetImplThread implThread;
- DebugScopedSetMainThreadBlocked mainThreadBlocked;
+ DebugScopedSetImplThread implThread(proxy());
+ DebugScopedSetMainThreadBlocked mainThreadBlocked(proxy());
context = WebKit::createFakeGraphicsContext();
resourceProvider = ResourceProvider::create(context.get());
params.texture->acquireBackingTexture(resourceProvider.get());
@@ -121,8 +123,8 @@ TEST_F(NinePatchLayerTest, triggerFullUploadOnceWhenChangingBitmap)
EXPECT_EQ(queue.partialUploadSize(), 0);
{
- DebugScopedSetImplThread implThread;
- DebugScopedSetMainThreadBlocked mainThreadBlocked;
+ DebugScopedSetImplThread implThread(proxy());
+ DebugScopedSetMainThreadBlocked mainThreadBlocked(proxy());
m_layerTreeHost->contentsTextureManager()->clearAllMemory(resourceProvider.get());
}
« no previous file with comments | « cc/nine_patch_layer_impl_unittest.cc ('k') | cc/occlusion_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698