epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 1 | |
senorblanco@chromium.org | 9d18b78 | 2011-03-28 20:47:09 +0000 | [diff] [blame] | 2 | /* |
epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 3 | * Copyright 2011 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. |
senorblanco@chromium.org | 9d18b78 | 2011-03-28 20:47:09 +0000 | [diff] [blame] | 7 | */ |
| 8 | |
epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 9 | |
senorblanco@chromium.org | 9d18b78 | 2011-03-28 20:47:09 +0000 | [diff] [blame] | 10 | #ifndef GrTesselatedPathRenderer_DEFINED |
| 11 | #define GrTesselatedPathRenderer_DEFINED |
| 12 | |
| 13 | #include "GrPathRenderer.h" |
| 14 | |
| 15 | class GrTesselatedPathRenderer : public GrPathRenderer { |
| 16 | public: |
| 17 | GrTesselatedPathRenderer(); |
| 18 | |
bsalomon@google.com | c2099d2 | 2012-03-02 21:26:50 +0000 | [diff] [blame^] | 19 | virtual bool canDrawPath(const SkPath& path, |
bsalomon@google.com | 289533a | 2011-10-27 12:34:25 +0000 | [diff] [blame] | 20 | GrPathFill fill, |
bsalomon@google.com | c2099d2 | 2012-03-02 21:26:50 +0000 | [diff] [blame^] | 21 | const GrDrawTarget* target, |
bsalomon@google.com | 289533a | 2011-10-27 12:34:25 +0000 | [diff] [blame] | 22 | bool antiAlias) const SK_OVERRIDE; |
bsalomon@google.com | c2099d2 | 2012-03-02 21:26:50 +0000 | [diff] [blame^] | 23 | |
| 24 | virtual bool onDrawPath(const SkPath& path, |
| 25 | GrPathFill fill, |
| 26 | const GrVec* translate, |
| 27 | GrDrawTarget* target, |
| 28 | GrDrawState::StageMask stageMask, |
| 29 | bool antiAlias) SK_OVERRIDE; |
senorblanco@chromium.org | 9d18b78 | 2011-03-28 20:47:09 +0000 | [diff] [blame] | 30 | }; |
| 31 | |
| 32 | #endif |