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

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

Issue 1584493002: Skip PaintPhaseDescendantOutlinesOnly if no descendent outlines in the layer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 32cc020fd20abaf3b4e3d411f0ef0fba49985db8..c9b70553f4ea7dbc8c2a94aab43e245b11e1f0db 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.h
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.h
@@ -282,6 +282,8 @@ public:
PaintLayer* enclosingLayerForPaintInvalidationCrossingFrameBoundaries() const;
+ PaintLayer* enclosingSelfPaintingLayer() const;
+
bool hasAncestorWithFilterOutsets() const;
bool canUseConvertToLayerCoords() const
@@ -621,6 +623,10 @@ public:
PaintLayerPainter::PaintResult previousPaintResult() const { return static_cast<PaintLayerPainter::PaintResult>(m_previousPaintResult); }
void setPreviousPaintResult(PaintLayerPainter::PaintResult result) { m_previousPaintResult = static_cast<unsigned>(result); ASSERT(m_previousPaintResult == static_cast<unsigned>(result)); }
+ bool needsPaintPhaseChildOutlines() const { return m_needsPaintPhaseChildOutlines; }
+ void setNeedsPaintPhaseChildOutlines() { ASSERT(isSelfPaintingLayer()); m_needsPaintPhaseChildOutlines = true; }
+ void clearNeedsPaintPhaseChildOutlines() { ASSERT(isSelfPaintingLayer()); m_needsPaintPhaseChildOutlines = false; }
+
PaintTiming* paintTiming();
private:
@@ -753,6 +759,8 @@ private:
unsigned m_needsRepaint : 1;
unsigned m_previousPaintResult : 1; // PaintLayerPainter::PaintResult
+ unsigned m_needsPaintPhaseChildOutlines : 1;
+
LayoutBoxModelObject* m_layoutObject;
PaintLayer* m_parent;

Powered by Google App Engine
This is Rietveld 408576698