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

Unified Diff: Source/core/paint/SVGShapePainter.h

Issue 1052873003: Explicitly use SkPaint(s) in SVGShapePainter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use GC::draw*; transfer->apply. Created 5 years, 8 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/layout/svg/LayoutSVGResourcePaintServer.cpp ('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
index 1f2b9b23e2d315136e5fcf15afe6181d4be888fe..47c4fe092f468475d8202632a65650dc86bcaf78 100644
--- a/Source/core/paint/SVGShapePainter.h
+++ b/Source/core/paint/SVGShapePainter.h
@@ -5,13 +5,16 @@
#ifndef SVGShapePainter_h
#define SVGShapePainter_h
+#include "third_party/skia/include/core/SkPath.h"
+
+class SkPaint;
+
namespace blink {
struct MarkerPosition;
struct PaintInfo;
class FloatPoint;
class GraphicsContext;
-class Path;
class LayoutSVGResourceMarker;
class LayoutSVGShape;
@@ -22,13 +25,12 @@ public:
void paint(const PaintInfo&);
private:
- void fillShape(GraphicsContext*);
- void strokeShape(GraphicsContext*);
+ void fillShape(GraphicsContext*, const SkPaint&, SkPath::FillType);
+ void strokeShape(GraphicsContext*, const SkPaint&);
void paintMarkers(const PaintInfo&);
void paintMarker(const PaintInfo&, LayoutSVGResourceMarker&, const MarkerPosition&, float);
- void strokeZeroLengthLineCaps(GraphicsContext*);
- Path* zeroLengthLinecapPath(const FloatPoint&) const;
+ void strokeZeroLengthLineCaps(GraphicsContext*, const SkPaint&);
LayoutSVGShape& m_renderSVGShape;
};
« no previous file with comments | « Source/core/layout/svg/LayoutSVGResourcePaintServer.cpp ('k') | Source/core/paint/SVGShapePainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698