OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 GrSoftwarePathRenderer_DEFINED | 8 #ifndef GrSoftwarePathRenderer_DEFINED |
9 #define GrSoftwarePathRenderer_DEFINED | 9 #define GrSoftwarePathRenderer_DEFINED |
10 | 10 |
(...skipping 19 matching lines...) Expand all Loading... |
30 const SkMatrix& localMatrix); | 30 const SkMatrix& localMatrix); |
31 static void DrawAroundInvPath(GrDrawContext* drawContext, | 31 static void DrawAroundInvPath(GrDrawContext* drawContext, |
32 const GrPaint* paint, | 32 const GrPaint* paint, |
33 const GrUserStencilSettings* userStencilSettin
gs, | 33 const GrUserStencilSettings* userStencilSettin
gs, |
34 const GrClip& clip, | 34 const GrClip& clip, |
35 GrColor color, | 35 GrColor color, |
36 const SkMatrix& viewMatrix, | 36 const SkMatrix& viewMatrix, |
37 const SkIRect& devClipBounds, | 37 const SkIRect& devClipBounds, |
38 const SkIRect& devPathBounds); | 38 const SkIRect& devPathBounds); |
39 | 39 |
40 StencilSupport onGetStencilSupport(const SkPath&) const override { | 40 StencilSupport onGetStencilSupport(const GrShape&) const override { |
41 return GrPathRenderer::kNoSupport_StencilSupport; | 41 return GrPathRenderer::kNoSupport_StencilSupport; |
42 } | 42 } |
43 | 43 |
44 bool onCanDrawPath(const CanDrawPathArgs&) const override; | 44 bool onCanDrawPath(const CanDrawPathArgs&) const override; |
45 | 45 |
46 bool onDrawPath(const DrawPathArgs&) override; | 46 bool onDrawPath(const DrawPathArgs&) override; |
47 | 47 |
48 private: | 48 private: |
49 GrTextureProvider* fTexProvider; | 49 GrTextureProvider* fTexProvider; |
50 | 50 |
51 typedef GrPathRenderer INHERITED; | 51 typedef GrPathRenderer INHERITED; |
52 }; | 52 }; |
53 | 53 |
54 #endif | 54 #endif |
OLD | NEW |