OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef SVGShapePainter_h | 5 #ifndef SVGShapePainter_h |
6 #define SVGShapePainter_h | 6 #define SVGShapePainter_h |
7 | 7 |
8 namespace blink { | 8 namespace blink { |
9 | 9 |
| 10 struct MarkerPosition; |
10 struct PaintInfo; | 11 struct PaintInfo; |
11 class FloatPoint; | 12 class FloatPoint; |
12 class GraphicsContext; | 13 class GraphicsContext; |
13 class Path; | 14 class Path; |
| 15 class RenderSVGResourceMarker; |
14 class RenderSVGShape; | 16 class RenderSVGShape; |
15 | 17 |
16 class SVGShapePainter { | 18 class SVGShapePainter { |
17 public: | 19 public: |
18 SVGShapePainter(RenderSVGShape& renderSVGShape) : m_renderSVGShape(renderSVG
Shape) { } | 20 SVGShapePainter(RenderSVGShape& renderSVGShape) : m_renderSVGShape(renderSVG
Shape) { } |
19 | 21 |
20 void paint(PaintInfo&); | 22 void paint(PaintInfo&); |
21 | 23 |
22 private: | 24 private: |
23 void fillShape(GraphicsContext*); | 25 void fillShape(GraphicsContext*); |
24 void strokeShape(GraphicsContext*); | 26 void strokeShape(GraphicsContext*); |
25 | 27 |
26 void paintMarkers(PaintInfo&); | 28 void paintMarkers(PaintInfo&); |
| 29 void paintMarker(PaintInfo&, RenderSVGResourceMarker&, const MarkerPosition&
, float); |
27 void strokeZeroLengthLineCaps(GraphicsContext*); | 30 void strokeZeroLengthLineCaps(GraphicsContext*); |
28 Path* zeroLengthLinecapPath(const FloatPoint&) const; | 31 Path* zeroLengthLinecapPath(const FloatPoint&) const; |
29 | 32 |
30 RenderSVGShape& m_renderSVGShape; | 33 RenderSVGShape& m_renderSVGShape; |
31 }; | 34 }; |
32 | 35 |
33 } // namespace blink | 36 } // namespace blink |
34 | 37 |
35 #endif // SVGShapePainter_h | 38 #endif // SVGShapePainter_h |
OLD | NEW |