blob: fcbae59058efd19a992b95932ec31cfcc0e6cb0a [file] [log] [blame]
joshualitt9ff64252015-08-10 09:03:51 -07001/*
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
joshualitt9ff64252015-08-10 09:03:51 -070011#include "GrColor.h"
joshualitt9ff64252015-08-10 09:03:51 -070012
joshualittaa37a962015-09-18 13:03:25 -070013class GrBatch;
bsalomonabd30f52015-08-13 13:34:48 -070014class GrDrawBatch;
joshualitt37eb1842015-08-12 06:36:57 -070015class SkMatrix;
16struct SkRect;
joshualitt9ff64252015-08-10 09:03:51 -070017
joshualitt37eb1842015-08-12 06:36:57 -070018namespace GrAAFillRectBatch {
bsalomonabd30f52015-08-13 13:34:48 -070019GrDrawBatch* Create(GrColor color,
20 const SkMatrix& viewMatrix,
21 const SkRect& rect,
22 const SkRect& devRect);
joshualitt147dc062015-08-12 11:51:46 -070023
bsalomonabd30f52015-08-13 13:34:48 -070024GrDrawBatch* Create(GrColor color,
25 const SkMatrix& viewMatrix,
26 const SkMatrix& localMatrix,
27 const SkRect& rect,
28 const SkRect& devRect);
joshualittaa37a962015-09-18 13:03:25 -070029
30void Append(GrBatch*,
31 GrColor,
32 const SkMatrix& viewMatrix,
33 const SkRect& rect,
34 const SkRect& devRect);
35
36void Append(GrBatch*,
37 GrColor,
38 const SkMatrix& viewMatrix,
39 const SkMatrix& localMatrix,
40 const SkRect& rect,
41 const SkRect& devRect);
joshualitt9ff64252015-08-10 09:03:51 -070042};
43
44#endif