Chromium Code Reviews| 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..2540b7b705109ed1d50e32ce0c4f3364b5800f98 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 phase without needing a PaintController. |
|
chrishtr
2016/07/19 17:27:52
Simulates a paint, not a paint phase right? "Paint
Xianzhu
2016/07/19 21:57:48
Done.
|
| + void updateCacheGeneration() |
| + { |
| + setDisplayItemsCached(CacheGenerationOrInvalidationReason::next()); |
| + } |
| + |
| private: |
| String m_name; |
| LayoutRect m_visualRect; |