diff options
author | aelias@chromium.org <aelias@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-04 03:25:55 +0000 |
---|---|---|
committer | aelias@chromium.org <aelias@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-04 03:25:55 +0000 |
commit | db79992121c7627abc0855e655d91470ee3ac3ac (patch) | |
tree | c9e8cc8541c775dbe600fb299b56fb37b9e05227 /cc/layer_unittest.cc | |
parent | 8311a2b8ceea50b6bcd923cd709949cc082b865d (diff) | |
download | chromium_src-db79992121c7627abc0855e655d91470ee3ac3ac.zip chromium_src-db79992121c7627abc0855e655d91470ee3ac3ac.tar.gz chromium_src-db79992121c7627abc0855e655d91470ee3ac3ac.tar.bz2 |
Remove static thread pointers from CC, attempt 2
BUG=152904
Review URL: https://chromiumcodereview.appspot.com/11232051
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165872 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layer_unittest.cc')
-rw-r--r-- | cc/layer_unittest.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cc/layer_unittest.cc b/cc/layer_unittest.cc index aadf11e..c042a1c 100644 --- a/cc/layer_unittest.cc +++ b/cc/layer_unittest.cc @@ -12,6 +12,7 @@ #include "cc/layer_tree_host.h" #include "cc/settings.h" #include "cc/single_thread_proxy.h" +#include "cc/thread.h" #include "cc/test/fake_layer_tree_host_client.h" #include "cc/test/geometry_test_utils.h" #include "cc/test/test_common.h" @@ -40,7 +41,7 @@ public: MockLayerImplTreeHost() : LayerTreeHost(&m_fakeClient, LayerTreeSettings()) { - initialize(); + initialize(scoped_ptr<Thread>(NULL)); } MOCK_METHOD0(setNeedsCommit, void()); @@ -528,8 +529,6 @@ TEST_F(LayerTest, checkPropertyChangeCausesCorrectBehavior) TEST_F(LayerTest, verifyPushPropertiesAccumulatesUpdateRect) { - DebugScopedSetImplThread setImplThread; - scoped_refptr<Layer> testLayer = Layer::create(); scoped_ptr<LayerImpl> implLayer = LayerImpl::create(1); @@ -555,7 +554,7 @@ public: { scoped_ptr<FakeLayerImplTreeHost> host(new FakeLayerImplTreeHost); // The initialize call will fail, since our client doesn't provide a valid GraphicsContext3D, but it doesn't matter in the tests that use this fake so ignore the return value. - host->initialize(); + host->initialize(scoped_ptr<Thread>(NULL)); return host.Pass(); } |