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

Side by Side Diff: src/gpu/effects/GrDashingEffect.h

Issue 1761523002: Retract GrDrawTarget and GrPipelineBuilder a bit more (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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/batches/GrDashLinePathRenderer.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
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
11 11
12 #include "GrColor.h" 12 #include "GrColor.h"
13 #include "GrTypesPriv.h" 13 #include "GrTypesPriv.h"
14 #include "SkPathEffect.h" 14 #include "SkPathEffect.h"
15 15
16 class GrClip; 16 class GrClip;
17 class GrDrawTarget; 17 class GrDrawBatch;
18 class GrPaint;
19 class GrPipelineBuilder;
20 class GrStrokeInfo; 18 class GrStrokeInfo;
21 19
22 namespace GrDashingEffect { 20 namespace GrDashingEffect {
23 bool DrawDashLine(GrDrawTarget*, const GrPipelineBuilder&, GrColor, 21 GrDrawBatch* CreateDashLineBatch(GrColor,
24 const SkMatrix& viewMatrix, const SkPoint pts[2], bool use AA, 22 const SkMatrix& viewMatrix,
25 const GrStrokeInfo& strokeInfo); 23 const SkPoint pts[2],
24 bool useAA,
25 bool msaaIsEnabled,
26 const GrStrokeInfo& strokeInfo);
26 bool CanDrawDashLine(const SkPoint pts[2], const GrStrokeInfo& strokeInfo, 27 bool CanDrawDashLine(const SkPoint pts[2], const GrStrokeInfo& strokeInfo,
27 const SkMatrix& viewMatrix); 28 const SkMatrix& viewMatrix);
28 } 29 }
29 30
30 #endif 31 #endif
OLDNEW
« no previous file with comments | « src/gpu/batches/GrDashLinePathRenderer.cpp ('k') | src/gpu/effects/GrDashingEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698