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

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

Issue 1037793002: C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: git cl web Created 5 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/GrDefaultGeoProcFactory.cpp ('k') | src/gpu/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 "SkTemplates.h" 12 #include "SkTemplates.h"
13 13
14 /** 14 /**
15 * Subclass that renders the path using the stencil buffer to resolve fill rule s 15 * Subclass that renders the path using the stencil buffer to resolve fill rule s
16 * (e.g. winding, even-odd) 16 * (e.g. winding, even-odd)
17 */ 17 */
18 class SK_API GrDefaultPathRenderer : public GrPathRenderer { 18 class SK_API GrDefaultPathRenderer : public GrPathRenderer {
19 public: 19 public:
20 GrDefaultPathRenderer(bool separateStencilSupport, bool stencilWrapOpsSuppor t); 20 GrDefaultPathRenderer(bool separateStencilSupport, bool stencilWrapOpsSuppor t);
21 21
22 virtual bool canDrawPath(const GrDrawTarget*, 22 virtual bool canDrawPath(const GrDrawTarget*,
23 const GrPipelineBuilder*, 23 const GrPipelineBuilder*,
24 const SkMatrix& viewMatrix, 24 const SkMatrix& viewMatrix,
25 const SkPath&, 25 const SkPath&,
26 const SkStrokeRec&, 26 const SkStrokeRec&,
27 bool antiAlias) const SK_OVERRIDE; 27 bool antiAlias) const override;
28 28
29 private: 29 private:
30 30
31 virtual StencilSupport onGetStencilSupport(const GrDrawTarget*, 31 virtual StencilSupport onGetStencilSupport(const GrDrawTarget*,
32 const GrPipelineBuilder*, 32 const GrPipelineBuilder*,
33 const SkPath&, 33 const SkPath&,
34 const SkStrokeRec&) const SK_OVER RIDE; 34 const SkStrokeRec&) const overrid e;
35 35
36 virtual bool onDrawPath(GrDrawTarget*, 36 virtual bool onDrawPath(GrDrawTarget*,
37 GrPipelineBuilder*, 37 GrPipelineBuilder*,
38 GrColor, 38 GrColor,
39 const SkMatrix& viewMatrix, 39 const SkMatrix& viewMatrix,
40 const SkPath&, 40 const SkPath&,
41 const SkStrokeRec&, 41 const SkStrokeRec&,
42 bool antiAlias) SK_OVERRIDE; 42 bool antiAlias) override;
43 43
44 virtual void onStencilPath(GrDrawTarget*, 44 virtual void onStencilPath(GrDrawTarget*,
45 GrPipelineBuilder*, 45 GrPipelineBuilder*,
46 const SkMatrix& viewMatrix, 46 const SkMatrix& viewMatrix,
47 const SkPath&, 47 const SkPath&,
48 const SkStrokeRec&) SK_OVERRIDE; 48 const SkStrokeRec&) override;
49 49
50 bool internalDrawPath(GrDrawTarget*, 50 bool internalDrawPath(GrDrawTarget*,
51 GrPipelineBuilder*, 51 GrPipelineBuilder*,
52 GrColor, 52 GrColor,
53 const SkMatrix& viewMatrix, 53 const SkMatrix& viewMatrix,
54 const SkPath&, 54 const SkPath&,
55 const SkStrokeRec&, 55 const SkStrokeRec&,
56 bool stencilOnly); 56 bool stencilOnly);
57 57
58 bool fSeparateStencil; 58 bool fSeparateStencil;
59 bool fStencilWrapOps; 59 bool fStencilWrapOps;
60 60
61 typedef GrPathRenderer INHERITED; 61 typedef GrPathRenderer INHERITED;
62 }; 62 };
63 63
64 #endif 64 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDefaultGeoProcFactory.cpp ('k') | src/gpu/GrDefaultPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698