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

Unified Diff: cc/trees/layer_tree_host_common.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/layers/render_surface_impl.cc ('k') | cc/trees/layer_tree_host_impl.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 e91dded995895c30d906072953f6a4a1b6f1ddca..74d6a51996bec7f6466f805013631d14cac5af6b 100644
--- a/cc/trees/layer_tree_host_common.cc
+++ b/cc/trees/layer_tree_host_common.cc
@@ -582,7 +582,8 @@ void CalculateDrawPropertiesInternal(
// A root layer render_surface should always exist after
// CalculateDrawProperties.
- DCHECK(inputs->root_layer->GetRenderSurface());
+ DCHECK(inputs->property_trees->effect_tree.GetRenderSurface(
+ EffectTree::kContentsRootNodeId));
}
void LayerTreeHostCommon::CalculateDrawPropertiesForTesting(
« no previous file with comments | « cc/layers/render_surface_impl.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698