blob: 96898ac5cfe7781202f200ccb72e2b578842763e [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>
Mike Kleinc0bd9f92019-04-23 12:05:21 -050012#include "include/core/SkRefCnt.h"
Brian Salomon201cdbb2019-08-14 17:00:30 -040013#include "src/gpu/GrSamplerState.h"
Brian Salomonfc527d22016-12-14 21:07:01 -050014
Robert Phillipsb97da532019-02-12 15:24:12 -050015class GrColorSpaceXform;
Brian Salomon815486c2017-07-11 08:52:13 -040016class GrDrawOp;
17class GrPaint;
Brian Salomonfc527d22016-12-14 21:07:01 -050018class SkLatticeIter;
Robert Phillipsb97da532019-02-12 15:24:12 -050019class GrRecordingContext;
Brian Salomon2a943df2018-05-04 13:43:19 -040020class GrTextureProxy;
Brian Salomonfc527d22016-12-14 21:07:01 -050021class SkMatrix;
22struct SkRect;
23
24namespace GrLatticeOp {
Robert Phillipsb97da532019-02-12 15:24:12 -050025std::unique_ptr<GrDrawOp> MakeNonAA(GrRecordingContext*,
Robert Phillips7c525e62018-06-12 10:11:12 -040026 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