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

Unified Diff: cc/layer_sorter_unittest.cc

Issue 11519018: [cc] Make LayerImpls point at LayerTreeImpl instead of LTHI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: cc/layer_sorter_unittest.cc
diff --git a/cc/layer_sorter_unittest.cc b/cc/layer_sorter_unittest.cc
index da86383ab691998a9ba5830c95c2f057d87c816f..969810b721096ec5f282cbae01ad9853fe3966f6 100644
--- a/cc/layer_sorter_unittest.cc
+++ b/cc/layer_sorter_unittest.cc
@@ -202,11 +202,11 @@ TEST(LayerSorterTest, verifyExistingOrderingPreservedWhenNoZDiff)
FakeImplProxy proxy;
FakeLayerTreeHostImpl hostImpl(&proxy);
- scoped_ptr<LayerImpl> layer1 = LayerImpl::create(&hostImpl, 1);
- scoped_ptr<LayerImpl> layer2 = LayerImpl::create(&hostImpl, 2);
- scoped_ptr<LayerImpl> layer3 = LayerImpl::create(&hostImpl, 3);
- scoped_ptr<LayerImpl> layer4 = LayerImpl::create(&hostImpl, 4);
- scoped_ptr<LayerImpl> layer5 = LayerImpl::create(&hostImpl, 5);
+ scoped_ptr<LayerImpl> layer1 = LayerImpl::create(hostImpl.activeTree(), 1);
+ scoped_ptr<LayerImpl> layer2 = LayerImpl::create(hostImpl.activeTree(), 2);
+ scoped_ptr<LayerImpl> layer3 = LayerImpl::create(hostImpl.activeTree(), 3);
+ scoped_ptr<LayerImpl> layer4 = LayerImpl::create(hostImpl.activeTree(), 4);
+ scoped_ptr<LayerImpl> layer5 = LayerImpl::create(hostImpl.activeTree(), 5);
gfx::Transform BehindMatrix;
BehindMatrix.Translate3d(0, 0, 2);
« cc/layer.h ('K') | « cc/layer_impl_unittest.cc ('k') | cc/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698