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

Side by Side Diff: third_party/WebKit/Source/core/paint/LayoutObjectDrawingRecorder.h

Issue 1387923002: LayoutObject::invalidatePaintIfNeededForSynchronizedPainting() and plumbing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef LayoutObjectDrawingRecorder_h 5 #ifndef LayoutObjectDrawingRecorder_h
6 #define LayoutObjectDrawingRecorder_h 6 #define LayoutObjectDrawingRecorder_h
7 7
8 #include "core/layout/LayoutObject.h" 8 #include "core/layout/LayoutObject.h"
9 #include "core/paint/PaintPhase.h" 9 #include "core/paint/PaintPhase.h"
10 #include "platform/geometry/LayoutPoint.h" 10 #include "platform/geometry/LayoutPoint.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 static void updatePaintOffsetIfNeeded(DisplayItemList* displayItemList, cons t LayoutObject& layoutObject, const LayoutPoint& paintOffset) 65 static void updatePaintOffsetIfNeeded(DisplayItemList* displayItemList, cons t LayoutObject& layoutObject, const LayoutPoint& paintOffset)
66 { 66 {
67 if (!RuntimeEnabledFeatures::slimmingPaintOffsetCachingEnabled() || disp layItemList->skippingCache()) 67 if (!RuntimeEnabledFeatures::slimmingPaintOffsetCachingEnabled() || disp layItemList->skippingCache())
68 return; 68 return;
69 69
70 if (layoutObject.paintOffsetChanged(paintOffset)) 70 if (layoutObject.paintOffsetChanged(paintOffset))
71 displayItemList->invalidatePaintOffset(layoutObject); 71 displayItemList->invalidatePaintOffset(layoutObject);
72 else 72 else
73 ASSERT(!displayItemList->paintOffsetWasInvalidated(layoutObject.disp layItemClient()) || !displayItemList->clientCacheIsValid(layoutObject.displayIte mClient())); 73 ASSERT(!displayItemList->paintOffsetWasInvalidated(layoutObject.disp layItemClient()) || !displayItemList->clientCacheIsValid(layoutObject.displayIte mClient()));
74 74
75 layoutObject.setPreviousPaintOffset(paintOffset); 75 layoutObject.mutableForPainting().setPreviousPaintOffset(paintOffset);
76 } 76 }
77 77
78 Optional<DisplayItemCacheSkipper> m_cacheSkipper; 78 Optional<DisplayItemCacheSkipper> m_cacheSkipper;
79 Optional<DrawingRecorder> m_drawingRecorder; 79 Optional<DrawingRecorder> m_drawingRecorder;
80 }; 80 };
81 81
82 } // namespace blink 82 } // namespace blink
83 83
84 #endif // LayoutObjectDrawingRecorder_h 84 #endif // LayoutObjectDrawingRecorder_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/InlinePainter.cpp ('k') | third_party/WebKit/Source/core/paint/PaintInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698