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

Side by Side Diff: src/gpu/GrStencilAndCoverPathRenderer.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/GrSoftwarePathRenderer.cpp ('k') | src/gpu/GrStencilAndCoverPathRenderer.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 2012 Google Inc. 3 * Copyright 2012 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 GrBuiltInPathRenderer_DEFINED 9 #ifndef GrBuiltInPathRenderer_DEFINED
10 #define GrBuiltInPathRenderer_DEFINED 10 #define GrBuiltInPathRenderer_DEFINED
11 11
12 #include "GrPathRenderer.h" 12 #include "GrPathRenderer.h"
13 13
14 class GrContext; 14 class GrContext;
15 class GrGpu; 15 class GrGpu;
16 16
17 /** 17 /**
18 * Uses GrGpu::stencilPath followed by a cover rectangle. This subclass doesn't apply AA; it relies 18 * Uses GrGpu::stencilPath followed by a cover rectangle. This subclass doesn't apply AA; it relies
19 * on the target having MSAA if AA is desired. 19 * on the target having MSAA if AA is desired.
20 */ 20 */
21 class GrStencilAndCoverPathRenderer : public GrPathRenderer { 21 class GrStencilAndCoverPathRenderer : public GrPathRenderer {
22 public: 22 public:
23 23
24 static GrPathRenderer* Create(GrResourceProvider*, const GrCaps&); 24 static GrPathRenderer* Create(GrResourceProvider*, const GrCaps&);
25 25
26 bool canDrawPath(const GrDrawTarget*,
27 const GrPipelineBuilder*,
28 const SkMatrix& viewMatrix,
29 const SkPath&,
30 const GrStrokeInfo&,
31 bool antiAlias) const override;
32 26
33 protected: 27 private:
34 StencilSupport onGetStencilSupport(const GrDrawTarget*, 28 StencilSupport onGetStencilSupport(const GrDrawTarget*,
35 const GrPipelineBuilder*, 29 const GrPipelineBuilder*,
36 const SkPath&, 30 const SkPath&,
37 const GrStrokeInfo&) const override; 31 const GrStrokeInfo&) const override;
38 32
39 bool onDrawPath(GrDrawTarget*, 33 bool onCanDrawPath(const CanDrawPathArgs&) const override;
40 GrPipelineBuilder*,
41 GrColor,
42 const SkMatrix& viewMatrix,
43 const SkPath&,
44 const GrStrokeInfo&,
45 bool antiAlias) override;
46 34
47 void onStencilPath(GrDrawTarget*, 35 bool onDrawPath(const DrawPathArgs&) override;
48 GrPipelineBuilder*,
49 const SkMatrix& viewMatrix,
50 const SkPath&,
51 const GrStrokeInfo&) override;
52 36
53 private: 37 void onStencilPath(const StencilPathArgs&) override;
38
54 GrStencilAndCoverPathRenderer(GrResourceProvider*); 39 GrStencilAndCoverPathRenderer(GrResourceProvider*);
55 40
56 GrResourceProvider* fResourceProvider; 41 GrResourceProvider* fResourceProvider;
57 42
58 typedef GrPathRenderer INHERITED; 43 typedef GrPathRenderer INHERITED;
59 }; 44 };
60 45
61 #endif 46 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrSoftwarePathRenderer.cpp ('k') | src/gpu/GrStencilAndCoverPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698