OLD | NEW |
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 GrSoftwarePathRenderer_DEFINED | 9 #ifndef GrSoftwarePathRenderer_DEFINED |
10 #define GrSoftwarePathRenderer_DEFINED | 10 #define GrSoftwarePathRenderer_DEFINED |
(...skipping 10 matching lines...) Expand all Loading... |
21 public: | 21 public: |
22 GrSoftwarePathRenderer(GrContext* context) | 22 GrSoftwarePathRenderer(GrContext* context) |
23 : fContext(context) { | 23 : fContext(context) { |
24 } | 24 } |
25 | 25 |
26 virtual bool canDrawPath(const GrDrawTarget*, | 26 virtual bool canDrawPath(const GrDrawTarget*, |
27 const GrPipelineBuilder*, | 27 const GrPipelineBuilder*, |
28 const SkMatrix& viewMatrix, | 28 const SkMatrix& viewMatrix, |
29 const SkPath&, | 29 const SkPath&, |
30 const SkStrokeRec&, | 30 const SkStrokeRec&, |
31 bool antiAlias) const SK_OVERRIDE; | 31 bool antiAlias) const override; |
32 protected: | 32 protected: |
33 virtual StencilSupport onGetStencilSupport(const GrDrawTarget*, | 33 virtual StencilSupport onGetStencilSupport(const GrDrawTarget*, |
34 const GrPipelineBuilder*, | 34 const GrPipelineBuilder*, |
35 const SkPath&, | 35 const SkPath&, |
36 const SkStrokeRec&) const SK_OVER
RIDE; | 36 const SkStrokeRec&) const overrid
e; |
37 | 37 |
38 virtual bool onDrawPath(GrDrawTarget*, | 38 virtual bool onDrawPath(GrDrawTarget*, |
39 GrPipelineBuilder*, | 39 GrPipelineBuilder*, |
40 GrColor, | 40 GrColor, |
41 const SkMatrix& viewMatrix, | 41 const SkMatrix& viewMatrix, |
42 const SkPath&, | 42 const SkPath&, |
43 const SkStrokeRec&, | 43 const SkStrokeRec&, |
44 bool antiAlias) SK_OVERRIDE; | 44 bool antiAlias) override; |
45 | 45 |
46 private: | 46 private: |
47 GrContext* fContext; | 47 GrContext* fContext; |
48 | 48 |
49 typedef GrPathRenderer INHERITED; | 49 typedef GrPathRenderer INHERITED; |
50 }; | 50 }; |
51 | 51 |
52 #endif | 52 #endif |
OLD | NEW |