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

Unified Diff: Source/core/html/HTMLCanvasElement.h

Issue 1093673002: Removing the dependency on GraphicsContext for drawing images in 2D canvas (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: apllied senorblanco feedback Created 5 years, 7 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: Source/core/html/HTMLCanvasElement.h
diff --git a/Source/core/html/HTMLCanvasElement.h b/Source/core/html/HTMLCanvasElement.h
index c0447d35b75ee308e5f8e0ab055079471e5e51d5..d90aacdf7793619f5a070bfd49cf536f6a502ec9 100644
--- a/Source/core/html/HTMLCanvasElement.h
+++ b/Source/core/html/HTMLCanvasElement.h
@@ -49,7 +49,6 @@ class AffineTransform;
class CanvasContextCreationAttributes;
class CanvasRenderingContext;
class GraphicsContext;
-class GraphicsContextStateSaver;
class HTMLCanvasElement;
class Image;
class ImageBuffer;
@@ -116,7 +115,6 @@ public:
void paint(GraphicsContext*, const LayoutRect&);
- GraphicsContext* drawingContext() const; // Deprecated: use drawingCanvas
SkCanvas* drawingCanvas() const;
SkCanvas* existingDrawingCanvas() const;
@@ -213,7 +211,6 @@ private:
mutable bool m_didFailToCreateImageBuffer;
bool m_imageBufferIsClear;
OwnPtr<ImageBuffer> m_imageBuffer;
- mutable OwnPtr<GraphicsContextStateSaver> m_contextStateSaver;
mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platforms that have to copy the image buffer to render (and for CSSCanvasValue).
};

Powered by Google App Engine
This is Rietveld 408576698