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

Unified Diff: Source/platform/graphics/GraphicsContext.h

Issue 907453003: Move overdraw tracking code from GraphicsContext to CanvasRenderingContext2D (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix test copypasta Created 5 years, 10 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
« no previous file with comments | « Source/platform/blink_platform.gypi ('k') | Source/platform/graphics/GraphicsContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/GraphicsContext.h
diff --git a/Source/platform/graphics/GraphicsContext.h b/Source/platform/graphics/GraphicsContext.h
index 934120731552e98e8a80b26a9ca787fe7d24f6a7..0ef3cc1e3b805193a5ef687137507b56eb4bec01 100644
--- a/Source/platform/graphics/GraphicsContext.h
+++ b/Source/platform/graphics/GraphicsContext.h
@@ -61,7 +61,6 @@ class ClipRecorderStack;
class DisplayItemList;
class ImageBuffer;
class KURL;
-class GraphicsContextClient;
class PLATFORM_EXPORT GraphicsContext {
WTF_MAKE_NONCOPYABLE(GraphicsContext); WTF_MAKE_FAST_ALLOCATED;
@@ -106,10 +105,6 @@ public:
bool hasStroke() const { return strokeStyle() != NoStroke && strokeThickness() > 0; }
- // Returns true if the clip is anything more than an intersection of rectangles
- bool hasComplexClip() const { return immutableState()->hasComplexClip(); }
- void setHasComplexClip() { mutableState()->setHasComplexClip(); }
-
float strokeThickness() const { return immutableState()->strokeData().thickness(); }
void setStrokeThickness(float thickness) { mutableState()->setStrokeThickness(thickness); }
@@ -204,8 +199,6 @@ public:
bool isAccelerated() const { return m_accelerated; }
void setAccelerated(bool accelerated) { m_accelerated = accelerated; }
- void setClient(GraphicsContextClient*);
-
// The text region is empty until tracking is turned on.
// It is never clerared by the context.
void setTrackTextRegion(bool track) { m_trackTextRegion = track; }
@@ -470,8 +463,6 @@ private:
// null indicates painting is contextDisabled. Never delete this object.
SkCanvas* m_canvas;
- GraphicsContextClient* m_client;
-
// This being null indicates not to paint into a DisplayItemList, and instead directly into the canvas.
DisplayItemList* m_displayItemList;
« no previous file with comments | « Source/platform/blink_platform.gypi ('k') | Source/platform/graphics/GraphicsContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698