40 return sk_make_sp<skgpu::graphite::SpecialImage>(
subset, fImage, this->
props());
75 auto [graphiteImage, _] =
81 image = graphiteImage;
84 return sk_make_sp<skgpu::graphite::SpecialImage>(subset, std::move(
image), props);
static SkImage_Base * as_IB(SkImage *image)
SkISize dimensions() const
virtual size_t textureSize() const =0
uint32_t uniqueID() const
const SkIRect & subset() const
const SkSurfaceProps & props() const
const SkColorInfo & colorInfo() const
sk_sp< SkImage > asImage() const override
SkISize backingStoreDimensions() const override
bool isGraphiteBacked() const override
SpecialImage(const SkIRect &subset, sk_sp< SkImage > image, const SkSurfaceProps &props)
sk_sp< SkSpecialImage > onMakeBackingStoreSubset(const SkIRect &subset) const override
size_t getSize() const override
sk_sp< const SkImage > image
sk_sp< SkSpecialImage > MakeGraphite(skgpu::graphite::Recorder *recorder, const SkIRect &subset, sk_sp< SkImage > image, const SkSurfaceProps &props)
std::pair< sk_sp< SkImage >, SkSamplingOptions > GetGraphiteBacked(Recorder *recorder, const SkImage *imageIn, SkSamplingOptions sampling)
bool contains(int32_t x, int32_t y) const