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

Unified Diff: Source/core/rendering/compositing/RenderLayerCompositor.h

Issue 264013002: Allow layers that need squashing to draw into the squashing layer in some cases. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Adjust. Created 6 years, 7 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/compositing/RenderLayerCompositor.h
diff --git a/Source/core/rendering/compositing/RenderLayerCompositor.h b/Source/core/rendering/compositing/RenderLayerCompositor.h
index 194bb8517b70fd9d2c17200e219feccc56c9d61d..b5eeec4cdd8345749b1f7090817171c2bdeec832 100644
--- a/Source/core/rendering/compositing/RenderLayerCompositor.h
+++ b/Source/core/rendering/compositing/RenderLayerCompositor.h
@@ -239,8 +239,14 @@ private:
bool hasUnresolvedDirtyBits();
+ enum NeedsSquashingBehavior {
+ ShouldPaintIntoOwnLayer = 0,
+ ShouldSquash = 1,
+ ShouldPaintIntoSameLayer = 2
+ };
+
bool squashingWouldExceedSparsityTolerance(const RenderLayer* candidate, const SquashingState&);
- bool canSquashIntoCurrentSquashingOwner(const RenderLayer* candidate, const SquashingState&);
+ NeedsSquashingBehavior computeSquashingBehaviorWhenSquashingRequired(const RenderLayer* candidate, const SquashingState&);
CompositingStateTransitionType computeCompositedLayerUpdate(RenderLayer*);
// Make updates to the layer based on viewport-constrained properties such as position:fixed. This can in turn affect

Powered by Google App Engine
This is Rietveld 408576698