blob: 6f6f0d039812fbdcf959116d33092ccc0ccec00b [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,
bsalomonc55271f2015-11-09 11:55:57 -080027 const SkRect& rect);
28
29GrDrawBatch* Create(GrColor color,
30 const SkMatrix& viewMatrix,
31 const SkMatrix& localMatrix,
bsalomonabd30f52015-08-13 13:34:48 -070032 const SkRect& rect,
33 const SkRect& devRect);
joshualittaa37a962015-09-18 13:03:25 -070034
bsalomonc55271f2015-11-09 11:55:57 -080035GrDrawBatch* CreateWithLocalRect(GrColor color,
36 const SkMatrix& viewMatrix,
37 const SkRect& rect,
38 const SkRect& localRect);
39
joshualittaa37a962015-09-18 13:03:25 -070040void 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);
joshualitt9ff64252015-08-10 09:03:51 -070052};
53
54#endif