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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/paint/DisplayItemCacheSkipper.h

Issue 1401363003: Rename DisplayItemList to PaintController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 unified diff | Download patch
OLDNEW
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698