OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef DisplayItemCacheSkipper_h | 5 #ifndef DisplayItemCacheSkipper_h |
6 #define DisplayItemCacheSkipper_h | 6 #define DisplayItemCacheSkipper_h |
7 | 7 |
8 #include "platform/graphics/GraphicsContext.h" | 8 #include "platform/graphics/GraphicsContext.h" |
9 #include "platform/graphics/paint/DisplayItemList.h" | 9 #include "platform/graphics/paint/PaintController.h" |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 | 12 |
13 class DisplayItemCacheSkipper { | 13 class DisplayItemCacheSkipper { |
14 public: | 14 public: |
15 DisplayItemCacheSkipper(GraphicsContext& context) | 15 DisplayItemCacheSkipper(GraphicsContext& context) |
16 : m_context(context) | 16 : m_context(context) |
17 { | 17 { |
18 context.displayItemList()->beginSkippingCache(); | 18 context.paintController()->beginSkippingCache(); |
19 } | 19 } |
20 ~DisplayItemCacheSkipper() | 20 ~DisplayItemCacheSkipper() |
21 { | 21 { |
22 m_context.displayItemList()->endSkippingCache(); | 22 m_context.paintController()->endSkippingCache(); |
23 } | 23 } |
24 | 24 |
25 private: | 25 private: |
26 GraphicsContext& m_context; | 26 GraphicsContext& m_context; |
27 }; | 27 }; |
28 | 28 |
29 } // namespace blink | 29 } // namespace blink |
30 | 30 |
31 #endif // DisplayItemCacheSkipper_h | 31 #endif // DisplayItemCacheSkipper_h |
OLD | NEW |