Debian Codegraph @

src/gpu/graphite/SpecialImage_Graphite.h

raw
1 /*
2 * Copyright 2022 Google LLC
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 skgpu_graphite_SpecialImage_Graphite_DEFINED
9 #define skgpu_graphite_SpecialImage_Graphite_DEFINED
10
11 #include "include/core/SkRefCnt.h"
12 #include "src/core/SkSpecialImage.h"
13 #include "src/gpu/graphite/TextureProxyView.h"
14
15 #include <cstdint>
16
17 class SkColorInfo;
18 class SkImage;
19 class SkSurfaceProps;
20 struct SkIRect;
21 struct SkImageInfo;
22
23 namespace skgpu::graphite {
24 class Recorder;
25 class TextureProxyView;
26 } // namespace skgpu::graphite
27
28 namespace SkSpecialImages {
29
30 sk_sp<SkSpecialImage> MakeGraphite(skgpu::graphite::Recorder*,
31 const SkIRect& subset,
32 sk_sp<SkImage>,
33 const SkSurfaceProps&);
34
35 } // namespace SkSpecialImages
36
37 #endif