| Index: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.h
|
| diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.h b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.h
|
| index f3216522dad46021c02fd34385d2fd76027e95ca..04f9b30d083fa23a29e603accb15c6fe4410bb82 100644
|
| --- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.h
|
| +++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.h
|
| @@ -8,6 +8,7 @@
|
| #include "core/css/CSSFontSelectorClient.h"
|
| #include "modules/canvas2d/ClipList.h"
|
| #include "platform/fonts/Font.h"
|
| +#include "platform/graphics/paint/PaintFlags.h"
|
| #include "platform/transforms/AffineTransform.h"
|
| #include "third_party/skia/include/core/SkRefCnt.h"
|
| #include "wtf/Vector.h"
|
| @@ -74,7 +75,7 @@ class CanvasRenderingContext2DState final
|
| void clipPath(const SkPath&, AntiAliasingMode);
|
| bool hasClip() const { return m_hasClip; }
|
| bool hasComplexClip() const { return m_hasComplexClip; }
|
| - void playbackClips(SkCanvas* canvas) const { m_clipList.playback(canvas); }
|
| + void playbackClips(PaintCanvas* canvas) const { m_clipList.playback(canvas); }
|
| const SkPath& getCurrentClipPath() const {
|
| return m_clipList.getCurrentClipPath();
|
| }
|
| @@ -123,14 +124,14 @@ class CanvasRenderingContext2DState final
|
| double lineWidth() const { return m_strokePaint.getStrokeWidth(); }
|
|
|
| void setLineCap(LineCap lineCap) {
|
| - m_strokePaint.setStrokeCap(static_cast<SkPaint::Cap>(lineCap));
|
| + m_strokePaint.setStrokeCap(static_cast<PaintFlags::Cap>(lineCap));
|
| }
|
| LineCap getLineCap() const {
|
| return static_cast<LineCap>(m_strokePaint.getStrokeCap());
|
| }
|
|
|
| void setLineJoin(LineJoin lineJoin) {
|
| - m_strokePaint.setStrokeJoin(static_cast<SkPaint::Join>(lineJoin));
|
| + m_strokePaint.setStrokeJoin(static_cast<PaintFlags::Join>(lineJoin));
|
| }
|
| LineJoin getLineJoin() const {
|
| return static_cast<LineJoin>(m_strokePaint.getStrokeJoin());
|
| @@ -178,7 +179,7 @@ class CanvasRenderingContext2DState final
|
|
|
| // If paint will not be used for painting a bitmap, set bitmapOpacity to
|
| // Opaque.
|
| - const SkPaint* getPaint(PaintType, ShadowMode, ImageType = NoImage) const;
|
| + const PaintFlags* getPaint(PaintType, ShadowMode, ImageType = NoImage) const;
|
|
|
| private:
|
| CanvasRenderingContext2DState();
|
| @@ -204,9 +205,9 @@ class CanvasRenderingContext2DState final
|
| Member<CanvasStyle> m_strokeStyle;
|
| Member<CanvasStyle> m_fillStyle;
|
|
|
| - mutable SkPaint m_strokePaint;
|
| - mutable SkPaint m_fillPaint;
|
| - mutable SkPaint m_imagePaint;
|
| + mutable PaintFlags m_strokePaint;
|
| + mutable PaintFlags m_fillPaint;
|
| + mutable PaintFlags m_imagePaint;
|
|
|
| FloatSize m_shadowOffset;
|
| double m_shadowBlur;
|
|
|