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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/DisplayItemClient.h

Issue 2185933003: Fix issues of display item client cache flags (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tests Created 4 years, 5 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/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;

Powered by Google App Engine
This is Rietveld 408576698