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

Unified Diff: cc/tree_synchronizer_unittest.cc

Issue 11472021: cc: Pass LayerTreeHostImpl to LayerImpl constructor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years 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/tree_synchronizer.cc ('k') | cc/video_layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tree_synchronizer_unittest.cc
diff --git a/cc/tree_synchronizer_unittest.cc b/cc/tree_synchronizer_unittest.cc
index 61aeb2b99daa5d553ad9139b2660495a5731ed20..893ed56572aa418c872a5e85c7584139d3e28c18 100644
--- a/cc/tree_synchronizer_unittest.cc
+++ b/cc/tree_synchronizer_unittest.cc
@@ -22,9 +22,9 @@ namespace {
class MockLayerImpl : public LayerImpl {
public:
- static scoped_ptr<MockLayerImpl> create(int layerId)
+ static scoped_ptr<MockLayerImpl> create(LayerTreeHostImpl* hostImpl, int layerId)
{
- return make_scoped_ptr(new MockLayerImpl(layerId));
+ return make_scoped_ptr(new MockLayerImpl(hostImpl, layerId));
}
virtual ~MockLayerImpl()
{
@@ -35,8 +35,8 @@ public:
void setLayerImplDestructionList(std::vector<int>* list) { m_layerImplDestructionList = list; }
private:
- MockLayerImpl(int layerId)
- : LayerImpl(layerId)
+ MockLayerImpl(LayerTreeHostImpl* hostImpl, int layerId)
+ : LayerImpl(hostImpl, layerId)
, m_layerImplDestructionList(0)
{
}
@@ -51,9 +51,9 @@ public:
return make_scoped_refptr(new MockLayer(layerImplDestructionList));
}
- virtual scoped_ptr<LayerImpl> createLayerImpl() OVERRIDE
+ virtual scoped_ptr<LayerImpl> createLayerImpl(LayerTreeHostImpl* hostImpl) OVERRIDE
{
- return MockLayerImpl::create(m_layerId).PassAs<LayerImpl>();
+ return MockLayerImpl::create(hostImpl, m_layerId).PassAs<LayerImpl>();
}
virtual void pushPropertiesTo(LayerImpl* layerImpl) OVERRIDE
« no previous file with comments | « cc/tree_synchronizer.cc ('k') | cc/video_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698