joshualitt | 9c80b5f | 2015-08-13 10:05:51 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2015 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
joshualitt | bcf33d5 | 2015-08-26 08:10:35 -0700 | [diff] [blame] | 8 | #ifndef GrNonAAFillRectBatch_DEFINED |
| 9 | #define GrNonAAFillRectBatch_DEFINED |
joshualitt | 9c80b5f | 2015-08-13 10:05:51 -0700 | [diff] [blame] | 10 | |
| 11 | #include "GrColor.h" |
| 12 | |
bsalomon | abd30f5 | 2015-08-13 13:34:48 -0700 | [diff] [blame] | 13 | class GrDrawBatch; |
joshualitt | 9c80b5f | 2015-08-13 10:05:51 -0700 | [diff] [blame] | 14 | class SkMatrix; |
| 15 | struct SkRect; |
| 16 | |
joshualitt | bcf33d5 | 2015-08-26 08:10:35 -0700 | [diff] [blame] | 17 | namespace GrNonAAFillRectBatch { |
joshualitt | 3566d44 | 2015-09-18 07:12:55 -0700 | [diff] [blame] | 18 | |
bsalomon | abd30f5 | 2015-08-13 13:34:48 -0700 | [diff] [blame] | 19 | GrDrawBatch* Create(GrColor color, |
joshualitt | 2244c27 | 2015-08-21 10:33:15 -0700 | [diff] [blame] | 20 | const SkMatrix& viewMatrix, |
| 21 | const SkRect& rect, |
| 22 | const SkRect* localRect, |
| 23 | const SkMatrix* localMatrix); |
joshualitt | 3566d44 | 2015-09-18 07:12:55 -0700 | [diff] [blame] | 24 | |
| 25 | GrDrawBatch* CreateWithPerspective(GrColor color, |
| 26 | const SkMatrix& viewMatrix, |
| 27 | const SkRect& rect, |
| 28 | const SkRect* localRect, |
| 29 | const SkMatrix* localMatrix); |
| 30 | |
joshualitt | aa37a96 | 2015-09-18 13:03:25 -0700 | [diff] [blame] | 31 | bool Append(GrColor color, |
| 32 | const SkMatrix& viewMatrix, |
| 33 | const SkRect& rect, |
| 34 | const SkRect* localRect, |
| 35 | const SkMatrix* localMatrix); |
| 36 | |
joshualitt | 9c80b5f | 2015-08-13 10:05:51 -0700 | [diff] [blame] | 37 | }; |
| 38 | |
| 39 | #endif |