| 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 GrBuiltInPathRenderer_DEFINED | 9 #ifndef GrBuiltInPathRenderer_DEFINED |
| 10 #define GrBuiltInPathRenderer_DEFINED | 10 #define GrBuiltInPathRenderer_DEFINED |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 public: | 22 public: |
| 23 | 23 |
| 24 static GrPathRenderer* Create(GrContext*); | 24 static GrPathRenderer* Create(GrContext*); |
| 25 | 25 |
| 26 virtual ~GrStencilAndCoverPathRenderer(); | 26 virtual ~GrStencilAndCoverPathRenderer(); |
| 27 | 27 |
| 28 virtual bool canDrawPath(const GrDrawTarget*, | 28 virtual bool canDrawPath(const GrDrawTarget*, |
| 29 const GrPipelineBuilder*, | 29 const GrPipelineBuilder*, |
| 30 const SkMatrix& viewMatrix, | 30 const SkMatrix& viewMatrix, |
| 31 const SkPath&, | 31 const SkPath&, |
| 32 const SkStrokeRec&, | 32 const GrStrokeInfo&, |
| 33 bool antiAlias) const override; | 33 bool antiAlias) const override; |
| 34 | 34 |
| 35 protected: | 35 protected: |
| 36 virtual StencilSupport onGetStencilSupport(const GrDrawTarget*, | 36 virtual StencilSupport onGetStencilSupport(const GrDrawTarget*, |
| 37 const GrPipelineBuilder*, | 37 const GrPipelineBuilder*, |
| 38 const SkPath&, | 38 const SkPath&, |
| 39 const SkStrokeRec&) const overrid
e; | 39 const GrStrokeInfo&) const overri
de; |
| 40 | 40 |
| 41 virtual bool onDrawPath(GrDrawTarget*, | 41 virtual bool onDrawPath(GrDrawTarget*, |
| 42 GrPipelineBuilder*, | 42 GrPipelineBuilder*, |
| 43 GrColor, | 43 GrColor, |
| 44 const SkMatrix& viewMatrix, | 44 const SkMatrix& viewMatrix, |
| 45 const SkPath&, | 45 const SkPath&, |
| 46 const SkStrokeRec&, | 46 const GrStrokeInfo&, |
| 47 bool antiAlias) override; | 47 bool antiAlias) override; |
| 48 | 48 |
| 49 virtual void onStencilPath(GrDrawTarget*, | 49 virtual void onStencilPath(GrDrawTarget*, |
| 50 GrPipelineBuilder*, | 50 GrPipelineBuilder*, |
| 51 const SkMatrix& viewMatrix, | 51 const SkMatrix& viewMatrix, |
| 52 const SkPath&, | 52 const SkPath&, |
| 53 const SkStrokeRec&) override; | 53 const GrStrokeInfo&) override; |
| 54 | 54 |
| 55 private: | 55 private: |
| 56 GrStencilAndCoverPathRenderer(GrGpu*); | 56 GrStencilAndCoverPathRenderer(GrGpu*); |
| 57 | 57 |
| 58 GrGpu* fGpu; | 58 GrGpu* fGpu; |
| 59 | 59 |
| 60 typedef GrPathRenderer INHERITED; | 60 typedef GrPathRenderer INHERITED; |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 #endif | 63 #endif |
| OLD | NEW |