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

Unified Diff: src/gpu/effects/GrDashingEffect.h

Issue 345113003: Add the ability for gpu to render dotted lines (dashed line, 0 on interval, round caps) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Clean up and Add GM ignore Created 6 years, 6 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 | « expectations/gm/ignored-tests.txt ('k') | src/gpu/effects/GrDashingEffect.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/effects/GrDashingEffect.h
diff --git a/src/gpu/effects/GrDashingEffect.h b/src/gpu/effects/GrDashingEffect.h
index 809601778f22dc14b14b7cb3658c4a2421035975..ced967127f9892daa17983b1c3b2c789dd250e5d 100644
--- a/src/gpu/effects/GrDashingEffect.h
+++ b/src/gpu/effects/GrDashingEffect.h
@@ -24,6 +24,11 @@ namespace GrDashingEffect {
bool DrawDashLine(const SkPoint pts[2], const GrPaint& paint, const GrStrokeInfo& strokeInfo,
GrGpu* gpu, GrDrawTarget* target, const SkMatrix& vm);
+ enum DashCap {
+ kRound_DashCap,
+ kNonRound_DashCap,
+ };
+
/**
* An effect that renders a dashed line. It is intended to be used as a coverage effect.
* The effect is meant for dashed lines that only have a single on/off interval pair.
@@ -31,7 +36,7 @@ namespace GrDashingEffect {
* position relative to the dashed line.
*/
GrEffectRef* Create(GrEffectEdgeType edgeType, const SkPathEffect::DashInfo& info,
- SkScalar strokeWidth);
+ SkScalar strokeWidth, DashCap cap);
}
#endif
« no previous file with comments | « expectations/gm/ignored-tests.txt ('k') | src/gpu/effects/GrDashingEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698