8#ifndef skgpu_graphite_Image_YUVA_Graphite_DEFINED
9#define skgpu_graphite_Image_YUVA_Graphite_DEFINED
54 return fProxies[channelIndex];
65 using YUVAProxies = std::array<TextureProxyView, SkYUVAInfo::kYUVAChannelCount>;
73 std::tuple<int, int> fUVSubsampleFactors;
static constexpr int kYUVAChannelCount
bool onIsProtected() const override
static sk_sp< Image_YUVA > Make(const Caps *caps, const SkYUVAInfo &yuvaInfo, SkSpan< TextureProxyView > planes, sk_sp< SkColorSpace > imageColorSpace)
sk_sp< SkImage > onReinterpretColorSpace(sk_sp< SkColorSpace >) const override
size_t textureSize() const override
std::tuple< int, int > uvSubsampleFactors() const
SkImage_Base::Type type() const override
const SkYUVAInfo & yuvaInfo() const
static sk_sp< Image_YUVA > WrapImages(const Caps *caps, const SkYUVAInfo &yuvaInfo, SkSpan< const sk_sp< SkImage > > images, sk_sp< SkColorSpace > imageColorSpace)
bool onHasMipmaps() const override
const TextureProxyView & proxyView(int channelIndex) const
std::array< MockImage, 3 > images