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

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

Issue 892203003: Dash using vertex attributes for interval and stroke width (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: dashing Created 5 years, 11 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 | « no previous file | 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 5552f1df1be3978686cea2975445372b4aea7cd1..b8cb82655dc6fa0e15f87e463aa7fe133188ecfb 100644
--- a/src/gpu/effects/GrDashingEffect.h
+++ b/src/gpu/effects/GrDashingEffect.h
@@ -15,36 +15,14 @@
class GrGpu;
class GrDrawTarget;
-class GrGeometryProcessor;
class GrPaint;
class GrPipelineBuilder;
class GrStrokeInfo;
-class GrGLDashingEffect;
-class SkPath;
-
namespace GrDashingEffect {
bool DrawDashLine(GrGpu*, GrDrawTarget*, GrPipelineBuilder*, GrColor,
const SkMatrix& viewMatrix, const SkPoint pts[2], const GrPaint& paint,
const GrStrokeInfo& strokeInfo);
-
- 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.
- * Bounding geometry is rendered and the effect computes coverage based on the fragment's
- * position relative to the dashed line.
- */
- GrGeometryProcessor* Create(GrColor,
- GrPrimitiveEdgeType edgeType,
- const SkPathEffect::DashInfo& info,
- SkScalar strokeWidth,
- DashCap cap,
- const SkMatrix& localMatrix);
}
#endif
« no previous file with comments | « no previous file | src/gpu/effects/GrDashingEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698