blob: aeb388f51056d9ed995d6bf1303348fd09731ab4 [file] [log] [blame]
joshualitt9c80b5f2015-08-13 10:05: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
joshualittbcf33d52015-08-26 08:10:35 -07008#ifndef GrNonAAFillRectBatch_DEFINED
9#define GrNonAAFillRectBatch_DEFINED
joshualitt9c80b5f2015-08-13 10:05:51 -070010
11#include "GrColor.h"
12
bsalomonabd30f52015-08-13 13:34:48 -070013class GrDrawBatch;
joshualitt9c80b5f2015-08-13 10:05:51 -070014class SkMatrix;
15struct SkRect;
16
joshualittbcf33d52015-08-26 08:10:35 -070017namespace GrNonAAFillRectBatch {
joshualitt3566d442015-09-18 07:12:55 -070018
bsalomonabd30f52015-08-13 13:34:48 -070019GrDrawBatch* Create(GrColor color,
joshualitt2244c272015-08-21 10:33:15 -070020 const SkMatrix& viewMatrix,
21 const SkRect& rect,
22 const SkRect* localRect,
23 const SkMatrix* localMatrix);
joshualitt3566d442015-09-18 07:12:55 -070024
25GrDrawBatch* CreateWithPerspective(GrColor color,
26 const SkMatrix& viewMatrix,
27 const SkRect& rect,
28 const SkRect* localRect,
29 const SkMatrix* localMatrix);
30
joshualittaa37a962015-09-18 13:03:25 -070031bool Append(GrColor color,
32 const SkMatrix& viewMatrix,
33 const SkRect& rect,
34 const SkRect* localRect,
35 const SkMatrix* localMatrix);
36
joshualitt9c80b5f2015-08-13 10:05:51 -070037};
38
39#endif