Index: third_party/WebKit/Source/platform/testing/FakeDisplayItemClient.h |
diff --git a/third_party/WebKit/Source/platform/testing/FakeDisplayItemClient.h b/third_party/WebKit/Source/platform/testing/FakeDisplayItemClient.h |
index ea301b43604d559254c7be367ff3fc1d4a3b450a..051a8886e7c9c46c4f2e28f48b3d54c0881b8893 100644 |
--- a/third_party/WebKit/Source/platform/testing/FakeDisplayItemClient.h |
+++ b/third_party/WebKit/Source/platform/testing/FakeDisplayItemClient.h |
@@ -20,6 +20,12 @@ public: |
String debugName() const final { return m_name; } |
LayoutRect visualRect() const override { return m_visualRect; } |
+ // This simulates a paint without needing a PaintController. |
+ void updateCacheGeneration() |
+ { |
+ setDisplayItemsCached(CacheGenerationOrInvalidationReason::next()); |
+ } |
+ |
private: |
String m_name; |
LayoutRect m_visualRect; |