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

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

Issue 2854493002: Store previous painting clip rects on FragmentData. (Closed)
Patch Set: none Created 3 years, 8 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 9f8ea182f0cf03edc2d9440096036c90022fbef7..aaa4f77563d66381a7a303a23dcb2681b502b9cd 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.h
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.h
@@ -925,15 +925,14 @@ class CORE_EXPORT PaintLayer : public DisplayItemClient {
previous_scroll_offset_accumulation_for_painting_ = s;
}
- ClipRects* PreviousPaintingClipRects() const {
- return previous_painting_clip_rects_.Get();
+ ClipRects* PreviousClipRects() const {
+ DCHECK(!RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled());
+ return previous_clip_rects_.Get();
}
- void SetPreviousPaintingClipRects(ClipRects& clip_rects) {
- previous_painting_clip_rects_ = &clip_rects;
- }
- void ClearPreviousPaintingClipRects() {
- previous_painting_clip_rects_.Clear();
+ void SetPreviousClipRects(ClipRects& clip_rects) {
+ previous_clip_rects_ = &clip_rects;
}
+ void ClearPreviousClipRects() { previous_clip_rects_.Clear(); }
LayoutRect PreviousPaintDirtyRect() const {
return previous_paint_dirty_rect_;
@@ -1265,7 +1264,7 @@ class CORE_EXPORT PaintLayer : public DisplayItemClient {
std::unique_ptr<PaintLayerStackingNode> stacking_node_;
IntSize previous_scroll_offset_accumulation_for_painting_;
- RefPtr<ClipRects> previous_painting_clip_rects_;
+ RefPtr<ClipRects> previous_clip_rects_;
LayoutRect previous_paint_dirty_rect_;
std::unique_ptr<PaintLayerRareData> rare_data_;
« no previous file with comments | « third_party/WebKit/Source/core/paint/FragmentData.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