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

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

Issue 1552693002: Add paint testing mode subsequence_caching_disabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@RemoveSyncPaint
Patch Set: Rebase on origin/master Created 4 years, 12 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 7f7f5ce5fc0b59e81fd08d73f9a61a9fece9fdf7..79b1cda1aaa9bd6a095cf197587bd5fd9655a857 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintController.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintController.h
@@ -127,8 +127,11 @@ public:
bool clientCacheIsValid(const DisplayItemClient&) const;
bool cacheIsEmpty() const { return m_currentPaintArtifact.isEmpty(); }
+ // For micro benchmarking of record time.
bool displayItemConstructionIsDisabled() const { return m_constructionDisabled; }
void setDisplayItemConstructionIsDisabled(const bool disable) { m_constructionDisabled = disable; }
+ bool subsequenceCachingIsDisabled() const { return m_subsequenceCachingDisabled; }
+ void setSubsequenceCachingIsDisabled(bool disable) { m_subsequenceCachingDisabled = disable; }
bool textPainted() const { return m_textPainted; }
void setTextPainted() { m_textPainted = true; }
@@ -183,6 +186,7 @@ protected:
: m_newDisplayItemList(kInitialDisplayItemListCapacityBytes)
, m_validlyCachedClientsDirty(false)
, m_constructionDisabled(false)
+ , m_subsequenceCachingDisabled(false)
, m_textPainted(false)
, m_imagePainted(false)
, m_skippingCacheCount(0)
@@ -253,6 +257,9 @@ private:
// in performance metrics.
bool m_constructionDisabled;
+ // Allow subsequence caching to be disabled to test the cost of display item caching.
+ bool m_subsequenceCachingDisabled;
+
// Indicates this PaintController has ever had text. It is never reset to false.
bool m_textPainted;
bool m_imagePainted;

Powered by Google App Engine
This is Rietveld 408576698