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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 2861593004: Replace three callsites to LayerImpl::GetRenderSurface with effect tree calls. (Closed)
Patch Set: Created 3 years, 8 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_common.cc ('k') | cc/trees/layer_tree_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index b8d25afce74bc79b87f99037202737c75b5e928c..680a15ac6b41bcdac6e1835d0750d71231c80690 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -728,11 +728,12 @@ DrawMode LayerTreeHostImpl::GetDrawMode() const {
}
}
-static void AppendQuadsToFillScreen(const gfx::Rect& root_scroll_layer_rect,
- RenderPass* target_render_pass,
- RenderSurfaceImpl* root_render_surface,
- SkColor screen_background_color,
- const Region& fill_region) {
+static void AppendQuadsToFillScreen(
+ const gfx::Rect& root_scroll_layer_rect,
+ RenderPass* target_render_pass,
+ const RenderSurfaceImpl* root_render_surface,
+ SkColor screen_background_color,
+ const Region& fill_region) {
if (!root_render_surface || !SkColorGetA(screen_background_color))
return;
if (fill_region.IsEmpty())
@@ -786,7 +787,7 @@ DrawResult LayerTreeHostImpl::CalculateRenderPasses(FrameData* frame) {
// If the root render surface has no visible damage, then don't generate a
// frame at all.
- RenderSurfaceImpl* root_surface = active_tree_->RootRenderSurface();
+ const RenderSurfaceImpl* root_surface = active_tree_->RootRenderSurface();
bool root_surface_has_no_visible_damage =
!root_surface->GetDamageRect().Intersects(root_surface->content_rect());
bool root_surface_has_contributing_layers =
« no previous file with comments | « cc/trees/layer_tree_host_common.cc ('k') | cc/trees/layer_tree_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698