xref: /third_party/skia/src/gpu/ops/LatticeOp.h (revision cb93a386)
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 LatticeOp_DEFINED
9#define LatticeOp_DEFINED
10
11#include <memory>
12#include "include/core/SkRefCnt.h"
13#include "src/gpu/GrSamplerState.h"
14#include "src/gpu/ops/GrOp.h"
15
16class GrColorSpaceXform;
17class GrPaint;
18class SkLatticeIter;
19class GrRecordingContext;
20class GrTextureProxy;
21class SkMatrix;
22struct SkRect;
23
24namespace skgpu::v1::LatticeOp {
25
26GrOp::Owner MakeNonAA(GrRecordingContext*,
27                      GrPaint&&,
28                      const SkMatrix& viewMatrix,
29                      GrSurfaceProxyView view,
30                      SkAlphaType alphaType,
31                      sk_sp<GrColorSpaceXform>,
32                      GrSamplerState::Filter,
33                      std::unique_ptr<SkLatticeIter>,
34                      const SkRect& dst);
35
36}  // namespace skgpu::v1::LatticeOp
37
38#endif // LatticeOp_DEFINED
39