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

Side by Side 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: 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/gpu/effects/GrDashingEffect.cpp » ('j') | src/gpu/effects/GrDashingEffect.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2014 Google Inc. 3 * Copyright 2014 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #ifndef GrDashingEffect_DEFINED 9 #ifndef GrDashingEffect_DEFINED
10 #define GrDashingEffect_DEFINED 10 #define GrDashingEffect_DEFINED
(...skipping 13 matching lines...) Expand all
24 bool DrawDashLine(const SkPoint pts[2], const GrPaint& paint, const GrStroke Info& strokeInfo, 24 bool DrawDashLine(const SkPoint pts[2], const GrPaint& paint, const GrStroke Info& strokeInfo,
25 GrGpu* gpu, GrDrawTarget* target, const SkMatrix& vm); 25 GrGpu* gpu, GrDrawTarget* target, const SkMatrix& vm);
26 26
27 /** 27 /**
28 * An effect that renders a dashed line. It is intended to be used as a cove rage effect. 28 * An effect that renders a dashed line. It is intended to be used as a cove rage effect.
29 * The effect is meant for dashed lines that only have a single on/off inter val pair. 29 * The effect is meant for dashed lines that only have a single on/off inter val pair.
30 * Bounding geometry is rendered and the effect computes coverage based on t he fragment's 30 * Bounding geometry is rendered and the effect computes coverage based on t he fragment's
31 * position relative to the dashed line. 31 * position relative to the dashed line.
32 */ 32 */
33 GrEffectRef* Create(GrEffectEdgeType edgeType, const SkPathEffect::DashInfo& info, 33 GrEffectRef* Create(GrEffectEdgeType edgeType, const SkPathEffect::DashInfo& info,
34 SkScalar strokeWidth); 34 SkScalar strokeWidth, bool isRoundCap);
35 } 35 }
36 36
37 #endif 37 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/effects/GrDashingEffect.cpp » ('j') | src/gpu/effects/GrDashingEffect.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698