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
8#ifndef GrAAFillRectBatch_DEFINED
9#define GrAAFillRectBatch_DEFINED
10
11#include "GrColor.h"
12
13class GrBatch;
14class GrDrawBatch;
15class SkMatrix;
16struct SkRect;
17
18namespace GrAAFillRectBatch {
19GrDrawBatch* Create(GrColor color,
20                    const SkMatrix& viewMatrix,
21                    const SkRect& rect,
22                    const SkRect& devRect);
23
24GrDrawBatch* Create(GrColor color,
25                    const SkMatrix& viewMatrix,
26                    const SkMatrix& localMatrix,
27                    const SkRect& rect);
28
29GrDrawBatch* Create(GrColor color,
30                    const SkMatrix& viewMatrix,
31                    const SkMatrix& localMatrix,
32                    const SkRect& rect,
33                    const SkRect& devRect);
34
35GrDrawBatch* CreateWithLocalRect(GrColor color,
36                                 const SkMatrix& viewMatrix,
37                                 const SkRect& rect,
38                                 const SkRect& localRect);
39
40void Append(GrBatch*,
41            GrColor,
42            const SkMatrix& viewMatrix,
43            const SkRect& rect,
44            const SkRect& devRect);
45
46void Append(GrBatch*,
47            GrColor,
48            const SkMatrix& viewMatrix,
49            const SkMatrix& localMatrix,
50            const SkRect& rect,
51            const SkRect& devRect);
52};
53
54#endif
55