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

Side by Side Diff: src/gpu/batches/GrDefaultPathRenderer.h

Issue 1950893002: Make GrPathRenderer only support fills for path stenciling (Closed) Base URL: https://skia.googlesource.com/skia.git@styleiface
Patch Set: Set draw params to fill in default impl of GrPR::onStencilPath Created 4 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/batches/GrDashLinePathRenderer.h ('k') | src/gpu/batches/GrDefaultPathRenderer.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 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrDefaultPathRenderer_DEFINED 8 #ifndef GrDefaultPathRenderer_DEFINED
9 #define GrDefaultPathRenderer_DEFINED 9 #define GrDefaultPathRenderer_DEFINED
10 10
11 #include "GrPathRenderer.h" 11 #include "GrPathRenderer.h"
12 #include "GrPathStencilSettings.h" 12 #include "GrPathStencilSettings.h"
13 #include "SkTypes.h" 13 #include "SkTypes.h"
14 14
15 /** 15 /**
16 * Subclass that renders the path using the stencil buffer to resolve fill rule s 16 * Subclass that renders the path using the stencil buffer to resolve fill rule s
17 * (e.g. winding, even-odd) 17 * (e.g. winding, even-odd)
18 */ 18 */
19 class SK_API GrDefaultPathRenderer : public GrPathRenderer { 19 class SK_API GrDefaultPathRenderer : public GrPathRenderer {
20 public: 20 public:
21 GrDefaultPathRenderer(bool separateStencilSupport, bool stencilWrapOpsSuppor t); 21 GrDefaultPathRenderer(bool separateStencilSupport, bool stencilWrapOpsSuppor t);
22 22
23 private: 23 private:
24 24
25 StencilSupport onGetStencilSupport(const SkPath&, const GrStrokeInfo&) const override; 25 StencilSupport onGetStencilSupport(const SkPath&) const override;
26 26
27 bool onCanDrawPath(const CanDrawPathArgs&) const override; 27 bool onCanDrawPath(const CanDrawPathArgs&) const override;
28 28
29 bool onDrawPath(const DrawPathArgs&) override; 29 bool onDrawPath(const DrawPathArgs&) override;
30 30
31 void onStencilPath(const StencilPathArgs&) override; 31 void onStencilPath(const StencilPathArgs&) override;
32 32
33 bool internalDrawPath(GrDrawTarget*, 33 bool internalDrawPath(GrDrawTarget*,
34 GrPipelineBuilder*, 34 GrPipelineBuilder*,
35 GrColor, 35 GrColor,
36 const SkMatrix& viewMatrix, 36 const SkMatrix& viewMatrix,
37 const SkPath&, 37 const SkPath&,
38 const GrStrokeInfo&, 38 const GrStrokeInfo&,
39 bool stencilOnly); 39 bool stencilOnly);
40 40
41 bool fSeparateStencil; 41 bool fSeparateStencil;
42 bool fStencilWrapOps; 42 bool fStencilWrapOps;
43 43
44 typedef GrPathRenderer INHERITED; 44 typedef GrPathRenderer INHERITED;
45 }; 45 };
46 46
47 #endif 47 #endif
OLDNEW
« no previous file with comments | « src/gpu/batches/GrDashLinePathRenderer.h ('k') | src/gpu/batches/GrDefaultPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698