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

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

Issue 2792833002: Revert of Optimize the pre-paint tree walk and ClipRects (Closed)
Patch Set: 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.h
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.h b/third_party/WebKit/Source/core/paint/PaintLayer.h
index fb3c6e80fca416c9738b9ebb6f885aeac137b36f..988052902d4b1a9057e26adad6be02955f93750f 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.h
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.h
@@ -901,17 +901,11 @@
m_previousScrollOffsetAccumulationForPainting = s;
}
- bool hasPreviousPaintingClipRects() const {
- return m_hasPreviousPaintingClipRects;
- }
-
- const ClipRects& previousPaintingClipRects() const {
- return m_previousPaintingClipRects;
- }
-
- void setPreviousPaintingClipRects(const ClipRects& clipRects) {
- m_previousPaintingClipRects = clipRects;
- m_hasPreviousPaintingClipRects = true;
+ ClipRects* previousPaintingClipRects() const {
+ return m_previousPaintingClipRects.get();
+ }
+ void setPreviousPaintingClipRects(ClipRects& clipRects) {
+ m_previousPaintingClipRects = &clipRects;
}
LayoutRect previousPaintDirtyRect() const { return m_previousPaintDirtyRect; }
@@ -1206,8 +1200,6 @@
unsigned m_selfPaintingStatusChanged : 1;
- unsigned m_hasPreviousPaintingClipRects : 1;
-
LayoutBoxModelObject& m_layoutObject;
PaintLayer* m_parent;
@@ -1243,7 +1235,7 @@
std::unique_ptr<PaintLayerStackingNode> m_stackingNode;
IntSize m_previousScrollOffsetAccumulationForPainting;
- ClipRects m_previousPaintingClipRects;
+ RefPtr<ClipRects> m_previousPaintingClipRects;
LayoutRect m_previousPaintDirtyRect;
std::unique_ptr<PaintLayerRareData> m_rareData;
« no previous file with comments | « third_party/WebKit/Source/core/paint/ClipRectsCache.h ('k') | third_party/WebKit/Source/core/paint/PaintLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698