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

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: pdr corrections + needsrebaselines 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..e626df681be00a22d53a7787c08fa53ab69a5958 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);
@@ -157,6 +158,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