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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsContext.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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/graphics/GraphicsContext.h
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsContext.h b/third_party/WebKit/Source/platform/graphics/GraphicsContext.h
index 2006b821ac43093176431c3a8999bd41ce09eccf..8491ed43c8808ad762534d17d2674ca4346bbaf6 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsContext.h
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsContext.h
@@ -57,9 +57,9 @@ struct SkRect;
namespace blink {
-class DisplayItemList;
class ImageBuffer;
class KURL;
+class PaintController;
class PLATFORM_EXPORT GraphicsContext {
WTF_MAKE_NONCOPYABLE(GraphicsContext); WTF_MAKE_FAST_ALLOCATED(GraphicsContext);
@@ -69,14 +69,14 @@ public:
FullyDisabled = 1 // Do absolutely minimal work to remove the cost of the context from performance tests.
};
- explicit GraphicsContext(DisplayItemList*, DisabledMode = NothingDisabled, SkMetaData* = 0);
+ explicit GraphicsContext(PaintController*, DisabledMode = NothingDisabled, SkMetaData* = 0);
~GraphicsContext();
SkCanvas* canvas() { return m_canvas; }
const SkCanvas* canvas() const { return m_canvas; }
- DisplayItemList* displayItemList() { return m_displayItemList; }
+ PaintController* paintController() { return m_paintController; }
bool contextDisabled() const { return m_disabledState; }
@@ -343,8 +343,8 @@ private:
// used when Slimming Paint is active.
SkCanvas* m_originalCanvas;
- // This being null indicates not to paint into a DisplayItemList, and instead directly into the canvas.
- DisplayItemList* m_displayItemList;
+ // This being null indicates not to paint using the PaintController, and instead directly into the canvas.
+ PaintController* m_paintController;
// Paint states stack. Enables local drawing state change with save()/restore() calls.
// This state controls the appearance of drawn content.

Powered by Google App Engine
This is Rietveld 408576698