1/*
2 * Copyright 2021 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#include "experimental/graphite/src/Image_Graphite.h"
9
10#if SK_SUPPORT_GPU
11// TODO: move onAsFragmentProcessor off of SkImage_Base and remove this include
12#include "src/gpu/GrFragmentProcessor.h"
13#endif
14
15namespace skgpu {
16
17Image_Graphite::Image_Graphite(const SkImageInfo& ii)
18    : SkImage_Base(ii, kNeedNewImageUniqueID) {
19}
20
21Image_Graphite::~Image_Graphite() {}
22
23#if SK_SUPPORT_GPU
24std::unique_ptr<GrFragmentProcessor> Image_Graphite::onAsFragmentProcessor(
25        GrRecordingContext*,
26        SkSamplingOptions,
27        const SkTileMode[2],
28        const SkMatrix&,
29        const SkRect* subset,
30        const SkRect* domain) const {
31    return nullptr;
32}
33#endif
34
35} // namespace skgpu
36