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

Unified Diff: cc/trees/occlusion_tracker.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_impl_unittest.cc ('k') | cc/trees/occlusion_tracker_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/occlusion_tracker.cc
diff --git a/cc/trees/occlusion_tracker.cc b/cc/trees/occlusion_tracker.cc
index 7db0e99368dc4ed0f19f053d370e65af53ecf1a5..78f5cc66675962ecde7f111c1b73b5c007190077 100644
--- a/cc/trees/occlusion_tracker.cc
+++ b/cc/trees/occlusion_tracker.cc
@@ -118,8 +118,8 @@ static SimpleEnclosedRegion TransformSurfaceOpaqueRegion(
}
void OcclusionTracker::EnterRenderTarget(const LayerImpl* new_target) {
- DCHECK(new_target->has_render_surface());
- RenderSurfaceImpl* new_target_surface = new_target->render_surface();
+ DCHECK(new_target->GetRenderSurface());
+ RenderSurfaceImpl* new_target_surface = new_target->GetRenderSurface();
if (!stack_.empty() && stack_.back().target == new_target_surface)
return;
@@ -181,7 +181,7 @@ void OcclusionTracker::FinishedRenderTarget(const LayerImpl* finished_target) {
// Make sure we know about the target surface.
EnterRenderTarget(finished_target);
- RenderSurfaceImpl* surface = finished_target->render_surface();
+ RenderSurfaceImpl* surface = finished_target->GetRenderSurface();
// Readbacks always happen on render targets so we only need to check
// for readbacks here.
@@ -255,8 +255,8 @@ static void ReduceOcclusionBelowSurface(
void OcclusionTracker::LeaveToRenderTarget(const LayerImpl* new_target) {
DCHECK(!stack_.empty());
size_t last_index = stack_.size() - 1;
- DCHECK(new_target->has_render_surface());
- RenderSurfaceImpl* new_surface = new_target->render_surface();
+ DCHECK(new_target->GetRenderSurface());
+ RenderSurfaceImpl* new_surface = new_target->GetRenderSurface();
bool surface_will_be_at_top_after_pop =
stack_.size() > 1 && stack_[last_index - 1].target == new_surface;
« no previous file with comments | « cc/trees/layer_tree_impl_unittest.cc ('k') | cc/trees/occlusion_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698