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

Unified Diff: Source/platform/graphics/StrokeData.h

Issue 169283008: Maintain SkPaint in GraphicsContextState. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Ready for review. Created 6 years, 10 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
Index: Source/platform/graphics/StrokeData.h
diff --git a/Source/platform/graphics/StrokeData.h b/Source/platform/graphics/StrokeData.h
index 177012d599924bc7b96526f723afb80fa49ec984..57c1799328222b5beed7636da9c8a42d992e0dee 100644
--- a/Source/platform/graphics/StrokeData.h
+++ b/Source/platform/graphics/StrokeData.h
@@ -84,11 +84,15 @@ public:
void setLineDash(const DashArray&, const float);
// Sets everything on the paint except the pattern, gradient and color.
- // GraphicsContext::setupShader does that. Returns a float representing the
- // effective width of the pen. If a non-zero length is provided, the
+ // GraphicsContext::setupShader does that. If a non-zero length is provided, the
// number of dashes/dots on a dashed/dotted line will be adjusted to
// start and end that length with a dash/dot.
- float setupPaint(SkPaint*, int length = 0) const;
+ void setupPaint(SkPaint*, int length = 0) const;
+
+ // Setup any DashPathEffect on the paint. If a non-zero length is provided,
+ // and no line dash has been set, the number of dashes/dots on a dashed/dotted
+ // line will be adjusted to start and end that length with a dash/dot.
+ void setupPaintDashPathEffect(SkPaint*, int) const;
private:
StrokeStyle m_style;

Powered by Google App Engine
This is Rietveld 408576698