bsalomon@google.com | 69cc6ad | 2012-01-17 14:25:10 +0000 | [diff] [blame] | 1 | |
| 2 | /* |
| 3 | * Copyright 2012 Google Inc. |
| 4 | * |
| 5 | * Use of this source code is governed by a BSD-style license that can be |
| 6 | * found in the LICENSE file. |
| 7 | */ |
| 8 | |
george | 9eb182a | 2014-06-20 12:01:06 -0700 | [diff] [blame] | 9 | #ifndef GrAAConvexPathRenderer_DEFINED |
| 10 | #define GrAAConvexPathRenderer_DEFINED |
bsalomon@google.com | 69cc6ad | 2012-01-17 14:25:10 +0000 | [diff] [blame] | 11 | |
george | 9eb182a | 2014-06-20 12:01:06 -0700 | [diff] [blame] | 12 | #include "GrPathRenderer.h" |
bsalomon@google.com | 69cc6ad | 2012-01-17 14:25:10 +0000 | [diff] [blame] | 13 | |
| 14 | class GrAAConvexPathRenderer : public GrPathRenderer { |
| 15 | public: |
| 16 | GrAAConvexPathRenderer(); |
bsalomon@google.com | c2099d2 | 2012-03-02 21:26:50 +0000 | [diff] [blame] | 17 | |
joshualitt | 9853cce | 2014-11-17 14:22:48 -0800 | [diff] [blame] | 18 | virtual bool canDrawPath(const GrDrawTarget*, |
| 19 | const GrDrawState*, |
joshualitt | 8059eb9 | 2014-12-29 15:10:07 -0800 | [diff] [blame^] | 20 | const SkMatrix& viewMatrix, |
joshualitt | 9853cce | 2014-11-17 14:22:48 -0800 | [diff] [blame] | 21 | const SkPath&, |
| 22 | const SkStrokeRec&, |
bsalomon@google.com | c2099d2 | 2012-03-02 21:26:50 +0000 | [diff] [blame] | 23 | bool antiAlias) const SK_OVERRIDE; |
robertphillips@google.com | fa66294 | 2012-05-17 12:20:22 +0000 | [diff] [blame] | 24 | |
bsalomon@google.com | c2099d2 | 2012-03-02 21:26:50 +0000 | [diff] [blame] | 25 | protected: |
joshualitt | 9853cce | 2014-11-17 14:22:48 -0800 | [diff] [blame] | 26 | virtual bool onDrawPath(GrDrawTarget*, |
| 27 | GrDrawState*, |
joshualitt | 2e3b3e3 | 2014-12-09 13:31:14 -0800 | [diff] [blame] | 28 | GrColor, |
joshualitt | 8059eb9 | 2014-12-29 15:10:07 -0800 | [diff] [blame^] | 29 | const SkMatrix& viewMatrix, |
joshualitt | 9853cce | 2014-11-17 14:22:48 -0800 | [diff] [blame] | 30 | const SkPath&, |
| 31 | const SkStrokeRec&, |
bsalomon@google.com | c2099d2 | 2012-03-02 21:26:50 +0000 | [diff] [blame] | 32 | bool antiAlias) SK_OVERRIDE; |
bsalomon@google.com | 69cc6ad | 2012-01-17 14:25:10 +0000 | [diff] [blame] | 33 | }; |
george | 9eb182a | 2014-06-20 12:01:06 -0700 | [diff] [blame] | 34 | |
| 35 | #endif |