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

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

Issue 2784963002: Optimize the pre-paint tree walk and ClipRects (Closed)
Patch Set: none Created 3 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 aabe1c5f5f715dabeeb6687319411f2a189aab07..8934d817ae5842737cc219258a1933eb78162190 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
@@ -95,7 +95,7 @@ static CompositingQueryMode gCompositingQueryMode =
struct SameSizeAsPaintLayer : DisplayItemClient {
int bitFields;
- void* pointers[11];
+ void* pointers[10];
LayoutUnit layoutUnits[4];
IntSize size;
Persistent<PaintLayerScrollableArea> scrollableArea;
@@ -104,6 +104,7 @@ struct SameSizeAsPaintLayer : DisplayItemClient {
void* pointer;
LayoutRect rect;
} previousPaintStatus;
+ ClipRects previousClipRects;
};
static_assert(sizeof(PaintLayer) == sizeof(SameSizeAsPaintLayer),
@@ -156,6 +157,7 @@ PaintLayer::PaintLayer(LayoutBoxModelObject& layoutObject)
m_hasNonIsolatedDescendantWithBlendMode(false),
m_hasAncestorWithClipPath(false),
m_selfPaintingStatusChanged(false),
+ m_hasPreviousPaintingClipRects(false),
m_layoutObject(layoutObject),
m_parent(0),
m_previous(0),

Powered by Google App Engine
This is Rietveld 408576698