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

Unified Diff: cc/trees/layer_tree_impl.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_video.cc ('k') | cc/trees/layer_tree_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_impl.cc
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
index dad33f43e9b245dbb29e6d1c19069a06e3dbefe1..5d91fc703c8436df4fa9f432099b4a3e1b2039a9 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -277,7 +277,7 @@ void LayerTreeImpl::UpdateScrollbars(int scroll_layer_id, int clip_layer_id) {
}
RenderSurfaceImpl* LayerTreeImpl::RootRenderSurface() const {
- return layer_list_.empty() ? nullptr : layer_list_[0]->render_surface();
+ return layer_list_.empty() ? nullptr : layer_list_[0]->GetRenderSurface();
}
bool LayerTreeImpl::LayerListIsEmpty() const {
@@ -1049,7 +1049,7 @@ bool LayerTreeImpl::UpdateDrawProperties(
"IsActive", IsActiveTree(), "SourceFrameNumber",
source_frame_number_);
OcclusionTracker occlusion_tracker(
- layer_list_[0]->render_surface()->content_rect());
+ layer_list_[0]->GetRenderSurface()->content_rect());
occlusion_tracker.set_minimum_tracking_size(
settings().minimum_occlusion_tracking_size);
@@ -1070,7 +1070,7 @@ bool LayerTreeImpl::UpdateDrawProperties(
const RenderSurfaceImpl* occlusion_surface =
occlusion_tracker.OcclusionSurfaceForContributingSurface();
gfx::Transform draw_transform;
- RenderSurfaceImpl* render_surface = it->render_surface();
+ RenderSurfaceImpl* render_surface = it->GetRenderSurface();
if (occlusion_surface) {
// We are calculating transform between two render surfaces. So, we
// need to apply the surface contents scale at target and remove the
@@ -1793,7 +1793,7 @@ static const gfx::Transform SurfaceScreenSpaceTransform(
const LayerImpl* layer) {
const PropertyTrees* property_trees =
layer->layer_tree_impl()->property_trees();
- RenderSurfaceImpl* render_surface = layer->render_surface();
+ RenderSurfaceImpl* render_surface = layer->GetRenderSurface();
DCHECK(render_surface);
return layer->is_drawn_render_surface_layer_list_member()
? render_surface->screen_space_transform()
@@ -1838,7 +1838,7 @@ static bool PointIsClippedByAncestorClipNode(
}
const LayerImpl* clip_node_owner =
layer->layer_tree_impl()->LayerById(clip_node->owning_layer_id);
- RenderSurfaceImpl* render_surface = clip_node_owner->render_surface();
+ RenderSurfaceImpl* render_surface = clip_node_owner->GetRenderSurface();
if (render_surface &&
!PointHitsRect(screen_space_point,
SurfaceScreenSpaceTransform(clip_node_owner),
« no previous file with comments | « cc/trees/layer_tree_host_unittest_video.cc ('k') | cc/trees/layer_tree_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698