blob: 89722818479e7f6e1cc54241cfa82e6a40de68f3 [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 GrNonAAFillRectOp_DEFINED
9#define GrNonAAFillRectOp_DEFINED
10
11#include "GrColor.h"
12#include "SkRefCnt.h"
13
Brian Salomond3ccb0a2017-04-03 10:38:00 -040014class GrLegacyMeshDrawOp;
Brian Salomon6a639042016-12-14 11:08:17 -050015class SkMatrix;
16struct SkRect;
17
18namespace GrNonAAFillRectOp {
19
Brian Salomond3ccb0a2017-04-03 10:38:00 -040020std::unique_ptr<GrLegacyMeshDrawOp> Make(GrColor color,
21 const SkMatrix& viewMatrix,
22 const SkRect& rect,
23 const SkRect* localRect,
24 const SkMatrix* localMatrix);
Brian Salomon6a639042016-12-14 11:08:17 -050025
Brian Salomond3ccb0a2017-04-03 10:38:00 -040026std::unique_ptr<GrLegacyMeshDrawOp> MakeWithPerspective(GrColor color,
27 const SkMatrix& viewMatrix,
28 const SkRect& rect,
29 const SkRect* localRect,
30 const SkMatrix* localMatrix);
Brian Salomon6a639042016-12-14 11:08:17 -050031};
32
33#endif