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

Unified Diff: cc/layers/render_surface_impl_unittest.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/layers/render_surface_impl.cc ('k') | cc/proto/property_tree.proto » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/render_surface_impl_unittest.cc
diff --git a/cc/layers/render_surface_impl_unittest.cc b/cc/layers/render_surface_impl_unittest.cc
index 40027f64ba097b28d27ea24fae76f30a32a48636..8d4b654cbd0dda46064df3bed42661888cddd7b9 100644
--- a/cc/layers/render_surface_impl_unittest.cc
+++ b/cc/layers/render_surface_impl_unittest.cc
@@ -81,10 +81,10 @@ TEST(RenderSurfaceLayerImplTest, AppendQuadsWithScaledMask) {
scale.Scale(2, 2);
surface->SetTransform(scale);
- surface->SetMaskLayer(
+ surface->test_properties()->SetMaskLayer(
FakeMaskLayerImpl::Create(impl.host_impl()->active_tree(), 4));
- surface->mask_layer()->SetDrawsContent(true);
- surface->mask_layer()->SetBounds(layer_size);
+ surface->test_properties()->mask_layer->SetDrawsContent(true);
+ surface->test_properties()->mask_layer->SetBounds(layer_size);
std::unique_ptr<LayerImpl> child =
LayerImpl::Create(impl.host_impl()->active_tree(), 5);
@@ -109,7 +109,7 @@ TEST(RenderSurfaceLayerImplTest, AppendQuadsWithScaledMask) {
AppendQuadsData append_quads_data;
render_surface_impl->AppendQuads(
render_pass.get(), render_surface_impl->draw_transform(), Occlusion(),
- SK_ColorBLACK, 1.f, surface_raw->mask_layer(), &append_quads_data,
+ SK_ColorBLACK, 1.f, render_surface_impl->MaskLayer(), &append_quads_data,
RenderPassId(1, 1));
const RenderPassDrawQuad* quad =
« no previous file with comments | « cc/layers/render_surface_impl.cc ('k') | cc/proto/property_tree.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698