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

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

Issue 1739893006: Skip PaintLayer empty paint phases if it previously painted nothing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 9 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.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.cpp b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
index 6686334a7c06441b6fd3c52af2d7093d652e358b..a85e695699fc149224079257648d1178fb773eeb 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
@@ -98,7 +98,7 @@ static CompositingQueryMode gCompositingQueryMode =
CompositingQueriesAreOnlyAllowedInCertainDocumentLifecyclePhases;
struct SameSizeAsPaintLayer : DisplayItemClient {
- int bitFields;
+ uint32_t bitFields1, bitFields2;
void* pointers[9];
LayoutUnit layoutUnits[4];
IntSize size;
@@ -160,8 +160,11 @@ PaintLayer::PaintLayer(LayoutBoxModelObject* layoutObject, PaintLayerType type)
, m_needsRepaint(false)
, m_previousPaintResult(PaintLayerPainter::FullyPainted)
, m_needsPaintPhaseDescendantOutlines(false)
+ , m_previousPaintPhaseDescendantOutlinesWasEmpty(false)
, m_needsPaintPhaseFloat(false)
+ , m_previousPaintPhaseFloatWasEmpty(false)
, m_needsPaintPhaseDescendantBlockBackgrounds(false)
+ , m_previousPaintPhaseDescendantBlockBackgroundsWasEmpty(false)
, m_hasDescendantWithClipPath(false)
, m_hasNonIsolatedDescendantWithBlendMode(false)
, m_hasAncestorWithClipPath(false)
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayer.h ('k') | third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698