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

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

Issue 2380683006: SPv2: Add support for tracking raster paint invalidations in testing. (Closed)
Patch Set: none Created 4 years, 3 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/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 bc639bdc451a79cbaf1c2d8d75374a8a4aa4e1b0..db20539695d506f722eb0fa111421a788d36933d 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintController.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintController.h
@@ -159,6 +159,8 @@ public:
void assertDisplayItemClientsAreLive();
#endif
+ void setTracksPaintInvalidations(bool value) { m_isTrackingPaintInvalidations = value; }
+
protected:
PaintController()
: m_newDisplayItemList(0)
@@ -169,6 +171,7 @@ protected:
, m_skippingCacheCount(0)
, m_numCachedNewItems(0)
, m_currentCachedSubsequenceBeginIndexInNewList(kNotFound)
+ , m_isTrackingPaintInvalidations(false)
#ifndef NDEBUG
, m_numSequentialMatches(0)
, m_numOutOfOrderMatches(0)
@@ -270,6 +273,7 @@ private:
IndicesByClientMap m_outOfOrderChunkIndices;
size_t m_currentCachedSubsequenceBeginIndexInNewList;
+ bool m_isTrackingPaintInvalidations;
size_t m_nextChunkToMatch;
DisplayItemClient::CacheGenerationOrInvalidationReason m_currentCacheGeneration;

Powered by Google App Engine
This is Rietveld 408576698