blob: ac28d0fb46dd3851809658c0f8494bdb0af7eb9c [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
joshualitt9c80b5f2015-08-13 10:05:51 -070031};
32
33#endif