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

Unified Diff: cc/trees/layer_tree_host_unittest_occlusion.cc

Issue 2035863003: cc: Add mask and replica layer ids to the effect tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments Created 4 years, 6 months 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/trees/layer_tree_host_unittest.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_unittest_occlusion.cc
diff --git a/cc/trees/layer_tree_host_unittest_occlusion.cc b/cc/trees/layer_tree_host_unittest_occlusion.cc
index 1d3b3963c8de807312c7ea33d7d579f11ccaf216..6d47b1599675e7bd2fbd58aa318a0f9f486a19de 100644
--- a/cc/trees/layer_tree_host_unittest_occlusion.cc
+++ b/cc/trees/layer_tree_host_unittest_occlusion.cc
@@ -174,7 +174,7 @@ class LayerTreeHostOcclusionTestDrawPropertiesOnMask
LayerImpl* root = impl->active_tree()->root_layer();
LayerImpl* child = impl->active_tree()->LayerById(child_->id());
RenderSurfaceImpl* surface = child->render_surface();
- LayerImpl* mask = child->mask_layer();
+ LayerImpl* mask = surface->MaskLayer();
// Verify the draw properties are valid.
EXPECT_TRUE(root->is_drawn_render_surface_layer_list_member());
@@ -245,7 +245,7 @@ class LayerTreeHostOcclusionTestDrawPropertiesOnScaledMask
void DrawLayersOnThread(LayerTreeHostImpl* impl) override {
LayerImpl* child = impl->active_tree()->LayerById(child_->id());
- LayerImpl* mask = child->mask_layer();
+ LayerImpl* mask = child->render_surface()->MaskLayer();
gfx::Transform scale;
scale.Scale(2, 2);
@@ -315,7 +315,7 @@ class LayerTreeHostOcclusionTestDrawPropertiesInsideReplica
LayerImpl* root = impl->active_tree()->root_layer();
LayerImpl* child = impl->active_tree()->LayerById(child_->id());
RenderSurfaceImpl* surface = child->render_surface();
- LayerImpl* mask = child->mask_layer();
+ LayerImpl* mask = surface->MaskLayer();
// Verify the draw properties are valid.
EXPECT_TRUE(root->is_drawn_render_surface_layer_list_member());
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698