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 274673004: Add Dashing gpu effect for simple dashed lines (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Move DrawDashLine into namespace Created 6 years, 7 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 | « src/gpu/SkGpuDevice.cpp ('k') | src/gpu/effects/GrDashingEffect.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1
2 /*
3 * Copyright 2014 Google Inc.
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8
9 #ifndef GrDashingEffect_DEFINED
10 #define GrDashingEffect_DEFINED
11
12 #include "GrTypesPriv.h"
13 #include "SkPathEffect.h"
14
15 class SkGpuDevice;
16
17 class GrGLDashingEffect;
18 class SkPath;
19
20 namespace GrDashingEffect {
21 bool DrawDashLine(const SkPoint pnts[2], const SkPaint& paint, SkGpuDevice* dev);
22
23 /**
24 * An effect that renders a dashed line. It is intended to be used as a cove rage effect.
25 * The effect is meant for dashed lines that only have a single on/off inter val pair.
26 * Bounding geometry is rendered and the effect computes coverage based on t he fragment's
27 * position relative to the dashed line.
28 */
29 GrEffectRef* Create(GrEffectEdgeType edgeType, const SkPathEffect::DashInfo& info,
30 const SkMatrix& matrix, SkScalar strokeWidth);
31 }
32
33 #endif
OLDNEW
« no previous file with comments | « src/gpu/SkGpuDevice.cpp ('k') | src/gpu/effects/GrDashingEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698