blob: ff9844ea79a210434fce6e9f70818be424efc7a9 [file] [log] [blame]
Brian Salomon6a639042016-12-14 11:08:17 -05001/*
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 GrAAFillRectOp_DEFINED
9#define GrAAFillRectOp_DEFINED
10
11#include "GrColor.h"
12#include "SkRefCnt.h"
13
14class GrDrawOp;
15class SkMatrix;
16struct SkRect;
17
18namespace GrAAFillRectOp {
Brian Salomonf8334782017-01-03 09:42:58 -050019std::unique_ptr<GrDrawOp> Make(GrColor color,
20 const SkMatrix& viewMatrix,
21 const SkRect& rect,
22 const SkRect& devRect);
Brian Salomon6a639042016-12-14 11:08:17 -050023
Brian Salomonf8334782017-01-03 09:42:58 -050024std::unique_ptr<GrDrawOp> Make(GrColor color,
25 const SkMatrix& viewMatrix,
26 const SkMatrix& localMatrix,
27 const SkRect& rect);
Brian Salomon6a639042016-12-14 11:08:17 -050028
Brian Salomonf8334782017-01-03 09:42:58 -050029std::unique_ptr<GrDrawOp> Make(GrColor color,
30 const SkMatrix& viewMatrix,
31 const SkMatrix& localMatrix,
32 const SkRect& rect,
33 const SkRect& devRect);
Brian Salomon6a639042016-12-14 11:08:17 -050034
Brian Salomonf8334782017-01-03 09:42:58 -050035std::unique_ptr<GrDrawOp> MakeWithLocalRect(GrColor color,
36 const SkMatrix& viewMatrix,
37 const SkRect& rect,
38 const SkRect& localRect);
Brian Salomon6a639042016-12-14 11:08:17 -050039};
40
41#endif