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

Side by Side Diff: src/gpu/GrDashLinePathRenderer.h

Issue 1265763002: Args structs to GrPathRenderer functions (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more Created 5 years, 4 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/GrClipMaskManager.cpp ('k') | src/gpu/GrDashLinePathRenderer.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 2015 Google Inc. 3 * Copyright 2015 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 GrDashLinePathRenderer_DEFINED 9 #ifndef GrDashLinePathRenderer_DEFINED
10 #define GrDashLinePathRenderer_DEFINED 10 #define GrDashLinePathRenderer_DEFINED
11 11
12 #include "GrPathRenderer.h" 12 #include "GrPathRenderer.h"
13 13
14 class GrDashLinePathRenderer : public GrPathRenderer { 14 class GrDashLinePathRenderer : public GrPathRenderer {
15 public: 15 private:
16 bool canDrawPath(const GrDrawTarget*, 16 bool onCanDrawPath(const CanDrawPathArgs&) const override;
17 const GrPipelineBuilder*,
18 const SkMatrix& viewMatrix,
19 const SkPath&,
20 const GrStrokeInfo&,
21 bool antiAlias) const override;
22 17
23 protected:
24 StencilSupport onGetStencilSupport(const GrDrawTarget*, 18 StencilSupport onGetStencilSupport(const GrDrawTarget*,
25 const GrPipelineBuilder*, 19 const GrPipelineBuilder*,
26 const SkPath&, 20 const SkPath&,
27 const GrStrokeInfo&) const override { 21 const GrStrokeInfo&) const override {
28 return kNoSupport_StencilSupport; 22 return kNoSupport_StencilSupport;
29 } 23 }
30 24
31 bool onDrawPath(GrDrawTarget*, 25 bool onDrawPath(const DrawPathArgs&) override;
32 GrPipelineBuilder*, 26
33 GrColor,
34 const SkMatrix& viewMatrix,
35 const SkPath&,
36 const GrStrokeInfo&,
37 bool antiAlias) override;
38 SkAutoTUnref<GrGpu> fGpu; 27 SkAutoTUnref<GrGpu> fGpu;
39 typedef GrPathRenderer INHERITED; 28 typedef GrPathRenderer INHERITED;
40 }; 29 };
41 30
42 31
43 #endif 32 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrClipMaskManager.cpp ('k') | src/gpu/GrDashLinePathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698