Index: third_party/WebKit/Source/platform/graphics/paint/DisplayItemClient.h |
diff --git a/third_party/WebKit/Source/platform/graphics/paint/DisplayItemClient.h b/third_party/WebKit/Source/platform/graphics/paint/DisplayItemClient.h |
index f076a8c606334772f77382089761c041fede8fad..42dcd89ecd0624550520beac4ae2b552c534e1cd 100644 |
--- a/third_party/WebKit/Source/platform/graphics/paint/DisplayItemClient.h |
+++ b/third_party/WebKit/Source/platform/graphics/paint/DisplayItemClient.h |
@@ -65,6 +65,7 @@ public: |
// A client is considered "just created" if its display items have never been committed. |
bool isJustCreated() const { return m_cacheGenerationOrInvalidationReason.isJustCreated(); } |
+ void clearIsJustCreated() const { m_cacheGenerationOrInvalidationReason.clearIsJustCreated(); } |
private: |
friend class FakeDisplayItemClient; |
@@ -115,6 +116,7 @@ private: |
} |
bool isJustCreated() const { return m_value == kJustCreated; } |
+ void clearIsJustCreated() { m_value = static_cast<ValueType>(PaintInvalidationFull); } |
private: |
typedef uint32_t ValueType; |