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

Unified Diff: cc/trees/layer_tree_host_unittest_occlusion.cc

Issue 2716733007: cc: Rename LayerImpl::render_surface to GetRenderSurface (Closed)
Patch Set: Created 3 years, 10 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_damage.cc ('k') | cc/trees/layer_tree_host_unittest_video.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 3cc2192938a18c20fe2300a114a1231312ba23b1..3202bb93f1a029b7d6b6efcee1d95a94589e174d 100644
--- a/cc/trees/layer_tree_host_unittest_occlusion.cc
+++ b/cc/trees/layer_tree_host_unittest_occlusion.cc
@@ -106,13 +106,13 @@ class LayerTreeHostOcclusionTestDrawPropertiesOnSurface
void DrawLayersOnThread(LayerTreeHostImpl* impl) override {
LayerImpl* root = impl->active_tree()->root_layer_for_testing();
LayerImpl* child = impl->active_tree()->LayerById(child_->id());
- RenderSurfaceImpl* surface = child->render_surface();
+ RenderSurfaceImpl* surface = child->GetRenderSurface();
// Verify the draw properties are valid.
EXPECT_TRUE(root->is_drawn_render_surface_layer_list_member());
EXPECT_TRUE(child->is_drawn_render_surface_layer_list_member());
- EXPECT_TRUE(child->has_render_surface());
- EXPECT_EQ(child->render_surface(), child->render_target());
+ EXPECT_TRUE(child->GetRenderSurface());
+ EXPECT_EQ(child->GetRenderSurface(), child->render_target());
EXPECT_OCCLUSION_EQ(
Occlusion(surface->draw_transform(), SimpleEnclosedRegion(),
@@ -173,14 +173,14 @@ class LayerTreeHostOcclusionTestDrawPropertiesOnMask
void DrawLayersOnThread(LayerTreeHostImpl* impl) override {
LayerImpl* root = impl->active_tree()->root_layer_for_testing();
LayerImpl* child = impl->active_tree()->LayerById(child_->id());
- RenderSurfaceImpl* surface = child->render_surface();
+ RenderSurfaceImpl* surface = child->GetRenderSurface();
LayerImpl* mask = surface->MaskLayer();
// Verify the draw properties are valid.
EXPECT_TRUE(root->is_drawn_render_surface_layer_list_member());
EXPECT_TRUE(child->is_drawn_render_surface_layer_list_member());
- EXPECT_TRUE(child->has_render_surface());
- EXPECT_EQ(child->render_surface(), child->render_target());
+ EXPECT_TRUE(child->GetRenderSurface());
+ EXPECT_EQ(child->GetRenderSurface(), child->render_target());
gfx::Transform transform = surface->draw_transform();
transform.PreconcatTransform(child->DrawTransform());
@@ -245,7 +245,7 @@ class LayerTreeHostOcclusionTestDrawPropertiesOnScaledMask
void DrawLayersOnThread(LayerTreeHostImpl* impl) override {
LayerImpl* child = impl->active_tree()->LayerById(child_->id());
- LayerImpl* mask = child->render_surface()->MaskLayer();
+ LayerImpl* mask = child->GetRenderSurface()->MaskLayer();
gfx::Transform scale;
scale.Scale(2, 2);
« no previous file with comments | « cc/trees/layer_tree_host_unittest_damage.cc ('k') | cc/trees/layer_tree_host_unittest_video.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698