23 int colorSamplesPerPixel,
48 size_t finalSize = colorSamplesPerPixel * colorSize;
53 finalSize += colorSize/3;
71 , fDirectContext(
std::move(directContext)) {
72 SkASSERT(fCallback && fDirectContext);
76 fDirectContext->priv().setInsideReleaseProc(
true);
78 fDirectContext->priv().setInsideReleaseProc(
false);
82 this->invokeReleaseProc();
87 this->invokeReleaseProc();
size_t GrBackendFormatBytesPerPixel(const GrBackendFormat &format)
SkTextureCompressionType GrBackendFormatToCompressionType(const GrBackendFormat &format)
size_t SkCompressedFormatDataSize(SkTextureCompressionType compressionType, SkISize dimensions, bool mipmapped)
sk_sp< T > sk_ref_sp(T *obj)
const GrDirectContext * getContext() const
RefCntedReleaseProc(sk_sp< skgpu::RefCntedCallback > callback, sk_sp< GrDirectContext > directContext)
void setRelease(sk_sp< skgpu::RefCntedCallback > releaseHelper)
SkISize dimensions() const
static size_t ComputeSize(const GrBackendFormat &, SkISize dimensions, int colorSamplesPerPixel, skgpu::Mipmapped, bool binSize=false)
virtual void onSetRelease(sk_sp< RefCntedReleaseProc >)
void onAbandon() override
void onRelease() override
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
uint32_t uint32_t * format
SkISize GetApproxSize(SkISize size)
constexpr int32_t width() const
constexpr int32_t height() const