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 | |
robertphillips@google.com | e79f320 | 2014-02-11 16:30:21 +0000 | [diff] [blame] | 18 | virtual bool canDrawPath(const SkPath& path, |
| 19 | const SkStrokeRec& stroke, |
bsalomon@google.com | c2099d2 | 2012-03-02 21:26:50 +0000 | [diff] [blame] | 20 | const GrDrawTarget* target, |
| 21 | bool antiAlias) const SK_OVERRIDE; |
robertphillips@google.com | fa66294 | 2012-05-17 12:20:22 +0000 | [diff] [blame] | 22 | |
bsalomon@google.com | c2099d2 | 2012-03-02 21:26:50 +0000 | [diff] [blame] | 23 | protected: |
robertphillips@google.com | e79f320 | 2014-02-11 16:30:21 +0000 | [diff] [blame] | 24 | virtual bool onDrawPath(const SkPath& path, |
| 25 | const SkStrokeRec& stroke, |
bsalomon@google.com | c2099d2 | 2012-03-02 21:26:50 +0000 | [diff] [blame] | 26 | GrDrawTarget* target, |
bsalomon@google.com | c2099d2 | 2012-03-02 21:26:50 +0000 | [diff] [blame] | 27 | bool antiAlias) SK_OVERRIDE; |
bsalomon@google.com | 69cc6ad | 2012-01-17 14:25:10 +0000 | [diff] [blame] | 28 | }; |
george | 9eb182a | 2014-06-20 12:01:06 -0700 | [diff] [blame] | 29 | |
| 30 | #endif |