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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayer.h

Issue 1626623002: Skip PaintPhaseDescendantBlockBackgroundsOnly phase if possible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@FloatPhase
Patch Set: Rebase Created 4 years, 11 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/paint/PaintLayer.h
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.h b/third_party/WebKit/Source/core/paint/PaintLayer.h
index dd5f4f5142708bd1199a8da0aaab94d59007832c..6d9cb1d13a5cc7cb00acfc70d3055bd282651974 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.h
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.h
@@ -672,6 +672,9 @@ public:
bool needsPaintPhaseFloat() const { return m_needsPaintPhaseFloat; }
void setNeedsPaintPhaseFloat() { ASSERT(isSelfPaintingLayer()); m_needsPaintPhaseFloat = true; }
+ bool needsPaintPhaseDescendantBlockBackgrounds() const { return m_needsPaintPhaseDescendantBlockBackgrounds; }
+ void setNeedsPaintPhaseDescendantBlockBackgrounds() { ASSERT(isSelfPaintingLayer()); m_needsPaintPhaseDescendantBlockBackgrounds = true; }
+
PaintTiming* paintTiming();
private:
@@ -813,6 +816,7 @@ private:
unsigned m_needsPaintPhaseDescendantOutlines : 1;
unsigned m_needsPaintPhaseFloat : 1;
+ unsigned m_needsPaintPhaseDescendantBlockBackgrounds : 1;
// These bitfields are part of ancestor/descendant dependent compositing inputs.
unsigned m_hasDescendantWithClipPath : 1;

Powered by Google App Engine
This is Rietveld 408576698