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

Unified Diff: cc/layers/layer.cc

Issue 1491033002: Create RenderSurface on Effect Tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@alwayspt
Patch Set: fix for crash Created 5 years 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/layer.h ('k') | cc/layers/layer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.cc
diff --git a/cc/layers/layer.cc b/cc/layers/layer.cc
index 80cac383eba24ebd39e6bdf85af249db137c795a..41fdd00fe587e37b4c18f8eceacf508a1ee15370 100644
--- a/cc/layers/layer.cc
+++ b/cc/layers/layer.cc
@@ -1206,6 +1206,7 @@ void Layer::PushPropertiesTo(LayerImpl* layer) {
layer->SetDrawsContent(DrawsContent());
layer->SetHideLayerAndSubtree(hide_layer_and_subtree_);
layer->SetHasRenderSurface(has_render_surface_);
+ layer->SetForceRenderSurface(force_render_surface_);
if (!layer->FilterIsAnimatingOnImplOnly() && !FilterIsAnimating())
layer->SetFilters(filters_);
DCHECK(!(FilterIsAnimating() && layer->FilterIsAnimatingOnImplOnly()));
@@ -1546,9 +1547,8 @@ void Layer::SetHasRenderSurface(bool has_render_surface) {
return;
has_render_surface_ = has_render_surface;
// We do not need SetNeedsCommit here, since this is only ever called
- // during a commit, from CalculateDrawProperties.
+ // during a commit, from CalculateDrawProperties using property trees.
SetNeedsPushProperties();
- layer_tree_host_->property_trees()->needs_rebuild = true;
}
gfx::ScrollOffset Layer::ScrollOffsetForAnimation() const {
« no previous file with comments | « cc/layers/layer.h ('k') | cc/layers/layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698