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

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

Issue 1508223005: Client side display item cache flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ScrollbarTheme
Patch Set: Created 4 years, 8 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.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/DisplayItemClient.cpp b/third_party/WebKit/Source/platform/graphics/paint/DisplayItemClient.cpp
index eeb5b2f02665a9ba0f18dfc96add945f8c7b417d..1bb0c826c70e2303f58d4dd444c4bafc3d169a91 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/DisplayItemClient.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/DisplayItemClient.cpp
@@ -5,11 +5,15 @@
#include "platform/graphics/paint/DisplayItemClient.h"
#if ENABLE(ASSERT)
-
#include "wtf/HashSet.h"
+#endif
namespace blink {
+DisplayItemCacheGeneration::Generation DisplayItemCacheGeneration::s_nextGeneration = 1;
+
+#if ENABLE(ASSERT)
+
HashSet<const DisplayItemClient*>* liveDisplayItemClients = nullptr;
DisplayItemClient::DisplayItemClient()
@@ -29,6 +33,6 @@ bool DisplayItemClient::isAlive(const DisplayItemClient& client)
return liveDisplayItemClients && liveDisplayItemClients->contains(&client);
}
-} // namespace blink
-
#endif // ENABLE(ASSERT)
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698