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

Unified Diff: Source/core/html/canvas/CanvasRenderingContext2DState.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: fixup 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/canvas/CanvasRenderingContext2DState.h
diff --git a/Source/core/html/canvas/CanvasRenderingContext2DState.h b/Source/core/html/canvas/CanvasRenderingContext2DState.h
index b01917133ff11ce2ba5297a7d718f05f3eb5da8e..1dc719d71a5d511f1497b8ed7fc0281970f2ce19 100644
--- a/Source/core/html/canvas/CanvasRenderingContext2DState.h
+++ b/Source/core/html/canvas/CanvasRenderingContext2DState.h
@@ -30,6 +30,7 @@ public:
enum PaintType {
FillPaintType,
StrokePaintType,
+ ImagePaintType,
};
CanvasRenderingContext2DState(const CanvasRenderingContext2DState&, ClipListCopyMode = CopyClipList);
@@ -46,6 +47,9 @@ public:
void setLineDash(const Vector<float>&);
const Vector<float>& lineDash() const { return m_lineDash; }
+ void setShouldAntialias(bool);
+ bool shouldAntialias() const;
+
void setLineDashOffset(float);
float lineDashOffset() const { return m_lineDashOffset; }
@@ -157,6 +161,7 @@ private:
mutable SkPaint m_strokePaint;
mutable SkPaint m_fillPaint;
+ mutable SkPaint m_imagePaint;
FloatSize m_shadowOffset;
float m_shadowBlur;

Powered by Google App Engine
This is Rietveld 408576698