blob: ef723ceb99e8c070ea2e322cfe36418c2be299c2 [file] [log] [blame]
Brian Salomonfc527d22016-12-14 21:07:01 -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 GLatticeOp_DEFINED
9#define GLatticeOp_DEFINED
10
Brian Salomon815486c2017-07-11 08:52:13 -040011#include <memory>
Brian Salomon2a943df2018-05-04 13:43:19 -040012#include "GrSamplerState.h"
13#include "SkRefCnt.h"
Brian Salomonfc527d22016-12-14 21:07:01 -050014
Robert Phillips7c525e62018-06-12 10:11:12 -040015class GrContext;
Brian Salomon815486c2017-07-11 08:52:13 -040016class GrDrawOp;
17class GrPaint;
Brian Salomonfc527d22016-12-14 21:07:01 -050018class SkLatticeIter;
Brian Salomon2a943df2018-05-04 13:43:19 -040019class GrTextureProxy;
20class GrColorSpaceXform;
Brian Salomonfc527d22016-12-14 21:07:01 -050021class SkMatrix;
22struct SkRect;
23
24namespace GrLatticeOp {
Robert Phillips7c525e62018-06-12 10:11:12 -040025std::unique_ptr<GrDrawOp> MakeNonAA(GrContext*,
26 GrPaint&&,
27 const SkMatrix& viewMatrix,
28 sk_sp<GrTextureProxy>,
29 sk_sp<GrColorSpaceXform>,
30 GrSamplerState::Filter,
31 std::unique_ptr<SkLatticeIter>,
32 const SkRect& dst);
Brian Salomonfc527d22016-12-14 21:07:01 -050033};
34
35#endif