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

Unified 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, 2 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
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/paint/SVGShapePainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/SVGShapePainter.h
diff --git a/Source/core/paint/SVGShapePainter.h b/Source/core/paint/SVGShapePainter.h
new file mode 100644
index 0000000000000000000000000000000000000000..32312f3192e33ea3186b8c47abec36c0aba07b84
--- /dev/null
+++ b/Source/core/paint/SVGShapePainter.h
@@ -0,0 +1,35 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SVGShapePainter_h
+#define SVGShapePainter_h
+
+namespace blink {
+
+struct PaintInfo;
+class FloatPoint;
+class GraphicsContext;
+class Path;
+class RenderSVGShape;
+
+class SVGShapePainter {
+public:
+ SVGShapePainter(RenderSVGShape& renderSVGShape) : m_renderSVGShape(renderSVGShape) { }
+
+ void paint(PaintInfo&);
+
+private:
+ void fillShape(GraphicsContext*);
+ void strokeShape(GraphicsContext*);
+
+ void paintMarkers(PaintInfo&);
+ void strokeZeroLengthLineCaps(GraphicsContext*);
+ Path* zeroLengthLinecapPath(const FloatPoint&) const;
+
+ RenderSVGShape& m_renderSVGShape;
+};
+
+} // namespace blink
+
+#endif // SVGShapePainter_h
« 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