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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/CompositingLayerAssigner.h

Issue 1730653002: Move squash preventing reasons out of compositing reasons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bug and test fixes. Created 4 years, 10 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: third_party/WebKit/Source/core/layout/compositing/CompositingLayerAssigner.h
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositingLayerAssigner.h b/third_party/WebKit/Source/core/layout/compositing/CompositingLayerAssigner.h
index 58eae242fbc16de5166696f2fc24185bdf958e08..a064eb2e831bae1faae254ed74b5f62e35e4746f 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositingLayerAssigner.h
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositingLayerAssigner.h
@@ -30,6 +30,7 @@
#include "core/layout/compositing/PaintLayerCompositor.h"
#include "platform/geometry/IntRect.h"
#include "platform/geometry/LayoutPoint.h"
+#include "platform/graphics/SquashingDisallowedReasons.h"
#include "wtf/Allocator.h"
namespace blink {
@@ -84,7 +85,7 @@ private:
void assignLayersToBackingsInternal(PaintLayer*, SquashingState&, Vector<PaintLayer*>& layersNeedingPaintInvalidation);
void assignLayersToBackingsForReflectionLayer(PaintLayer* reflectionLayer, Vector<PaintLayer*>& layersNeedingPaintInvalidation);
- CompositingReasons getReasonsPreventingSquashing(const PaintLayer*, const SquashingState&);
+ SquashingDisallowedReasons getReasonsPreventingSquashing(const PaintLayer*, const SquashingState&);
bool squashingWouldExceedSparsityTolerance(const PaintLayer* candidate, const SquashingState&);
void updateSquashingAssignment(PaintLayer*, SquashingState&, CompositingStateTransitionType, Vector<PaintLayer*>& layersNeedingPaintInvalidation);
bool needsOwnBacking(const PaintLayer*) const;

Powered by Google App Engine
This is Rietveld 408576698