| 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 GrAAConvexPathRenderer_DEFINED | 9 #ifndef GrAAConvexPathRenderer_DEFINED |
| 10 #define GrAAConvexPathRenderer_DEFINED | 10 #define GrAAConvexPathRenderer_DEFINED |
| 11 | 11 |
| 12 #include "GrPathRenderer.h" | 12 #include "GrPathRenderer.h" |
| 13 | 13 |
| 14 class GrAAConvexPathRenderer : public GrPathRenderer { | 14 class GrAAConvexPathRenderer : public GrPathRenderer { |
| 15 public: | 15 public: |
| 16 GrAAConvexPathRenderer(); | 16 GrAAConvexPathRenderer(); |
| 17 | 17 |
| 18 virtual bool canDrawPath(const SkPath& path, | 18 virtual bool canDrawPath(const GrDrawTarget*, |
| 19 const SkStrokeRec& stroke, | 19 const GrDrawState*, |
| 20 const GrDrawTarget* target, | 20 const SkPath&, |
| 21 const SkStrokeRec&, |
| 21 bool antiAlias) const SK_OVERRIDE; | 22 bool antiAlias) const SK_OVERRIDE; |
| 22 | 23 |
| 23 protected: | 24 protected: |
| 24 virtual bool onDrawPath(const SkPath& path, | 25 virtual bool onDrawPath(GrDrawTarget*, |
| 25 const SkStrokeRec& stroke, | 26 GrDrawState*, |
| 26 GrDrawTarget* target, | 27 const SkPath&, |
| 28 const SkStrokeRec&, |
| 27 bool antiAlias) SK_OVERRIDE; | 29 bool antiAlias) SK_OVERRIDE; |
| 28 }; | 30 }; |
| 29 | 31 |
| 30 #endif | 32 #endif |
| OLD | NEW |