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

Side by Side Diff: Source/core/paint/SVGShapePainter.h

Issue 678863002: Move SVG shape painting code to SVGShapePainter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update per reviewer comments Created 6 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/paint/SVGShapePainter.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef SVGShapePainter_h
6 #define SVGShapePainter_h
7
8 namespace blink {
9
10 struct PaintInfo;
11 class FloatPoint;
12 class GraphicsContext;
13 class Path;
14 class RenderSVGShape;
15
16 class SVGShapePainter {
17 public:
18 SVGShapePainter(RenderSVGShape& renderSVGShape) : m_renderSVGShape(renderSVG Shape) { }
19
20 void paint(PaintInfo&);
21
22 private:
23 void fillShape(GraphicsContext*);
24 void strokeShape(GraphicsContext*);
25
26 void paintMarkers(PaintInfo&);
27 void strokeZeroLengthLineCaps(GraphicsContext*);
28 Path* zeroLengthLinecapPath(const FloatPoint&) const;
29
30 RenderSVGShape& m_renderSVGShape;
31 };
32
33 } // namespace blink
34
35 #endif // SVGShapePainter_h
OLDNEW
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/paint/SVGShapePainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698