• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
15 namespace skgpu {
16 
Image_Graphite(const SkImageInfo & ii)17 Image_Graphite::Image_Graphite(const SkImageInfo& ii)
18     : SkImage_Base(ii, kNeedNewImageUniqueID) {
19 }
20 
~Image_Graphite()21 Image_Graphite::~Image_Graphite() {}
22 
23 #if SK_SUPPORT_GPU
onAsFragmentProcessor(GrRecordingContext *,SkSamplingOptions,const SkTileMode[2],const SkMatrix &,const SkRect * subset,const SkRect * domain) const24 std::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