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

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

Issue 1834133003: added GrMSAAPathRenderer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: blacklisted Intel 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/GrDefaultPathRenderer.cpp ('k') | src/gpu/batches/GrMSAAPathRenderer.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 GrMSAAPathRenderer_DEFINED
9 #define GrDefaultPathRenderer_DEFINED 9 #define GrMSAAPathRenderer_DEFINED
10 10
11 #include "GrPathRenderer.h" 11 #include "GrPathRenderer.h"
12 #include "SkTypes.h" 12 #include "SkTypes.h"
13 13
14 /** 14 class SK_API GrMSAAPathRenderer : public GrPathRenderer {
15 * Subclass that renders the path using the stencil buffer to resolve fill rule s
16 * (e.g. winding, even-odd)
17 */
18 class SK_API GrDefaultPathRenderer : public GrPathRenderer {
19 public:
20 GrDefaultPathRenderer(bool separateStencilSupport, bool stencilWrapOpsSuppor t);
21
22 private: 15 private:
23
24 StencilSupport onGetStencilSupport(const SkPath&, const GrStrokeInfo&) const override; 16 StencilSupport onGetStencilSupport(const SkPath&, const GrStrokeInfo&) const override;
25 17
26 bool onCanDrawPath(const CanDrawPathArgs&) const override; 18 bool onCanDrawPath(const CanDrawPathArgs&) const override;
27 19
28 bool onDrawPath(const DrawPathArgs&) override; 20 bool onDrawPath(const DrawPathArgs&) override;
29 21
30 void onStencilPath(const StencilPathArgs&) override; 22 void onStencilPath(const StencilPathArgs&) override;
31 23
32 bool internalDrawPath(GrDrawTarget*, 24 bool internalDrawPath(GrDrawTarget*,
33 GrPipelineBuilder*, 25 GrPipelineBuilder*,
34 GrColor, 26 GrColor,
35 const SkMatrix& viewMatrix, 27 const SkMatrix& viewMatrix,
36 const SkPath&, 28 const SkPath&,
37 const GrStrokeInfo&, 29 const GrStrokeInfo&,
38 bool stencilOnly); 30 bool stencilOnly);
39 31
40 bool fSeparateStencil;
41 bool fStencilWrapOps;
42
43 typedef GrPathRenderer INHERITED; 32 typedef GrPathRenderer INHERITED;
44 }; 33 };
45 34
46 #endif 35 #endif
OLDNEW
« no previous file with comments | « src/gpu/batches/GrDefaultPathRenderer.cpp ('k') | src/gpu/batches/GrMSAAPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698