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

Unified Diff: cc/trees/layer_tree_host_common.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/damage_tracker_unittest.cc ('k') | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_common.cc
diff --git a/cc/trees/layer_tree_host_common.cc b/cc/trees/layer_tree_host_common.cc
index afe4a7599354de61c8a0df080128a1ba4c8c73bf..205b95f732a056203fa78efe8b3b4bdb029b694a 100644
--- a/cc/trees/layer_tree_host_common.cc
+++ b/cc/trees/layer_tree_host_common.cc
@@ -291,7 +291,7 @@ static void ComputeInitialRenderSurfaceLayerList(
// all non-skipped layers to the layer list of their target surface, and
// add their content rect to their target surface's accumulated content rect.
for (LayerImpl* layer : *layer_tree_impl) {
- RenderSurfaceImpl* render_surface = layer->render_surface();
+ RenderSurfaceImpl* render_surface = layer->GetRenderSurface();
if (render_surface) {
render_surface->ClearLayerLists();
ClearMaskLayersAreDrawnRenderSurfaceLayerListMembers(render_surface);
@@ -372,7 +372,7 @@ static void ComputeSurfaceContentRects(LayerTreeImpl* layer_tree_impl,
// Walk the list backwards, accumulating each surface's content rect into its
// target's content rect.
for (LayerImpl* layer : base::Reversed(*render_surface_layer_list)) {
- RenderSurfaceImpl* render_surface = layer->render_surface();
+ RenderSurfaceImpl* render_surface = layer->GetRenderSurface();
if (layer_tree_impl->IsRootLayer(layer)) {
// The root layer's surface content rect is always the entire viewport.
render_surface->SetContentRectToViewport();
@@ -401,7 +401,7 @@ static void ComputeListOfNonEmptySurfaces(LayerTreeImpl* layer_tree_impl,
// the final list do not get added to the final list.
for (LayerImpl* layer : *initial_surface_list) {
bool is_root = layer_tree_impl->IsRootLayer(layer);
- RenderSurfaceImpl* surface = layer->render_surface();
+ RenderSurfaceImpl* surface = layer->GetRenderSurface();
RenderSurfaceImpl* target_surface = surface->render_target();
if (!is_root && (surface->content_rect().IsEmpty() ||
target_surface->layer_list().empty())) {
@@ -567,7 +567,7 @@ void CalculateDrawPropertiesInternal(
// A root layer render_surface should always exist after
// CalculateDrawProperties.
- DCHECK(inputs->root_layer->render_surface());
+ DCHECK(inputs->root_layer->GetRenderSurface());
}
void LayerTreeHostCommon::CalculateDrawPropertiesForTesting(
« no previous file with comments | « cc/trees/damage_tracker_unittest.cc ('k') | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698