1 /*
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 
11 #include <memory>
12 #include "GrSamplerState.h"
13 #include "SkRefCnt.h"
14 
15 class GrContext;
16 class GrDrawOp;
17 class GrPaint;
18 class SkLatticeIter;
19 class GrTextureProxy;
20 class GrColorSpaceXform;
21 class SkMatrix;
22 struct SkRect;
23 
24 namespace GrLatticeOp {
25 std::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);
33 };
34 
35 #endif
36