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; |