| Index: Source/platform/graphics/paint/DisplayItemList.h
|
| diff --git a/Source/platform/graphics/paint/DisplayItemList.h b/Source/platform/graphics/paint/DisplayItemList.h
|
| index 57a8074405c34b1d845002801560a3147516d1a6..319d7f5cd8f415b66a53f2d6f698d13689791902 100644
|
| --- a/Source/platform/graphics/paint/DisplayItemList.h
|
| +++ b/Source/platform/graphics/paint/DisplayItemList.h
|
| @@ -35,6 +35,10 @@ public:
|
| void beginScope(DisplayItemClient);
|
| void endScope(DisplayItemClient);
|
|
|
| + void beginSkippingCache() { ++m_skippingCacheCount; }
|
| + void endSkippingCache() { ASSERT(m_skippingCacheCount > 0); --m_skippingCacheCount; }
|
| + bool skippingCache() const { return m_skippingCacheCount; }
|
| +
|
| // Must be called when a painting is finished.
|
| void commitNewDisplayItems();
|
|
|
| @@ -64,7 +68,8 @@ public:
|
| protected:
|
| DisplayItemList()
|
| : m_validlyCachedClientsDirty(false)
|
| - , m_constructionDisabled(false) { }
|
| + , m_constructionDisabled(false)
|
| + , m_skippingCacheCount(0) { }
|
|
|
| private:
|
| friend class DisplayItemListTest;
|
| @@ -109,6 +114,8 @@ private:
|
| // in performance metrics.
|
| bool m_constructionDisabled;
|
|
|
| + int m_skippingCacheCount;
|
| +
|
| // Scope ids are allocated per client to ensure that the ids are stable for non-invalidated
|
| // clients between frames, so that we can use the id to match new display items to cached
|
| // display items.
|
|
|