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

Unified Diff: Source/core/rendering/RenderLayer.h

Issue 233063004: Suppress layer creation for descendants of GPU-rasterized layers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 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
Index: Source/core/rendering/RenderLayer.h
diff --git a/Source/core/rendering/RenderLayer.h b/Source/core/rendering/RenderLayer.h
index c02a990249c859e8d7fc50be5ea9ccd54a3eb895..1cfdc227d68395f105ca2b75711c07383dc2982f 100644
--- a/Source/core/rendering/RenderLayer.h
+++ b/Source/core/rendering/RenderLayer.h
@@ -504,6 +504,9 @@ public:
bool shouldIsolateCompositedDescendants() const { return m_compositingProperties.shouldIsolateCompositedDescendants; }
void setShouldIsolateCompositedDescendants(bool b) { m_compositingProperties.shouldIsolateCompositedDescendants = b; }
+ bool suppressingCompositedLayerCreation() const { return m_compositingProperties.suppressingCompositedLayerCreation; }
+ void setSuppressingCompositedLayerCreation(bool b) { m_compositingProperties.suppressingCompositedLayerCreation = b; }
abarth-chromium 2014/04/14 20:25:53 Please add an ASSERT that we're allowed to query c
ajuma 2014/04/15 19:11:34 Added a getter for m_compositingProperties with an
+
void updateDescendantDependentFlags();
void updateOrRemoveFilterEffectRenderer();
@@ -728,6 +731,7 @@ private:
, lostGroupedMapping(false)
, viewportConstrainedNotCompositedReason(NoNotCompositedReason)
, compositingReasons(CompositingReasonNone)
+ , suppressingCompositedLayerCreation(false)
{ }
// Used only while determining what layers should be composited. Applies to the tree of z-order lists.
@@ -752,6 +756,9 @@ private:
// Used for invalidating this layer's contents on the squashing GraphicsLayer.
IntSize offsetFromSquashingLayerOrigin;
+
+ // Whether this render layer is trying to avoid becoming composited, if possible.
+ bool suppressingCompositedLayerCreation : 1;
abarth-chromium 2014/04/14 20:25:53 Please move this earlier in the struct so that it
ajuma 2014/04/15 19:11:34 Done.
};
AncestorDependentProperties m_ancestorDependentProperties;

Powered by Google App Engine
This is Rietveld 408576698