Chromium Code Reviews| Index: third_party/WebKit/Source/platform/graphics/paint/PaintController.h |
| diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintController.h b/third_party/WebKit/Source/platform/graphics/paint/PaintController.h |
| index 28324670645b376f8e760f71a4ddbeda6c121aeb..a12f5df1f87670984c5d0873a87cc13b842c3374 100644 |
| --- a/third_party/WebKit/Source/platform/graphics/paint/PaintController.h |
| +++ b/third_party/WebKit/Source/platform/graphics/paint/PaintController.h |
| @@ -212,8 +212,9 @@ private: |
| #if DCHECK_IS_ON() |
| // The following two methods are for checking under-invalidations |
| // (when RuntimeEnabledFeatures::slimmingPaintUnderInvalidationCheckingEnabled). |
| - void checkUnderInvalidation(DisplayItemList::iterator& newIt, DisplayItemList::iterator& currentIt); |
| - void checkCachedDisplayItemIsUnchanged(const char* messagePrefix, const DisplayItem& newItem, const DisplayItem& oldItem); |
| + void showUnderInvalidationError(const char* reason, const DisplayItem& newItem, const DisplayItem& oldItem) const; |
| + void checkUnderInvalidation(); |
| + bool isCheckingUnderInvalidation() const { return m_underInvalidationCheckingEnd - m_underInvalidationCheckingBegin > 0; } |
| #endif |
| // The last complete paint artifact. |
| @@ -262,6 +263,10 @@ private: |
| // This is used to check duplicated ids during createAndAppend(). |
| DisplayItemIndicesByClientMap m_newDisplayItemIndicesByClient; |
| + |
| + DisplayItemList::iterator m_underInvalidationCheckingBegin; |
|
chrishtr
2016/07/15 00:57:44
Please document these a little bit.
|
| + DisplayItemList::iterator m_underInvalidationCheckingEnd; |
| + String m_underInvalidationMessagePrefix; |
| #endif |
| #if CHECK_DISPLAY_ITEM_CLIENT_ALIVENESS |