8#ifndef skgpu_graphite_Surface_Graphite_DEFINED
9#define skgpu_graphite_Surface_Graphite_DEFINED
31 std::string_view label,
45 std::string_view label,
49 return Make(
recorder,
info, std::move(label), budgeted, mipmapped, backingFit,
95 std::string_view label,
101 bool registerWithRecorder);
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
const SkSurfaceProps & props() const
skgpu::graphite::Recorder * recorder() const
void onAsyncRescaleAndReadPixelsYUV420(SkYUVColorSpace yuvColorSpace, bool readAlpha, sk_sp< SkColorSpace > dstColorSpace, SkIRect srcRect, SkISize dstSize, RescaleGamma rescaleGamma, RescaleMode, ReadPixelsCallback callback, ReadPixelsContext context) override
static sk_sp< Surface > Make(Recorder *recorder, const SkImageInfo &info, std::string_view label, Budgeted budgeted, Mipmapped mipmapped=Mipmapped::kNo, SkBackingFit backingFit=SkBackingFit::kExact, const SkSurfaceProps *props=nullptr)
void onAsyncRescaleAndReadPixels(const SkImageInfo &info, SkIRect srcRect, RescaleGamma rescaleGamma, RescaleMode rescaleMode, ReadPixelsCallback callback, ReadPixelsContext context) override
SkCanvas * onNewCanvas() override
sk_sp< Image > makeImageCopy(const SkIRect *subset, Mipmapped) const
sk_sp< SkSurface > onNewSurface(const SkImageInfo &) override
sk_sp< Image > asImage() const
SkSurface_Base::Type type() const override
Recorder * onGetRecorder() const override
static sk_sp< Surface > MakeScratch(Recorder *recorder, const SkImageInfo &info, std::string_view label, Budgeted budgeted=Budgeted::kYes, Mipmapped mipmapped=Mipmapped::kNo, SkBackingFit backingFit=SkBackingFit::kApprox)
sk_sp< SkImage > onNewImageSnapshot(const SkIRect *subset) override
bool onCopyOnWrite(ContentChangeMode) override
void onWritePixels(const SkPixmap &, int x, int y) override
SkImageInfo imageInfo() const override
TextureProxyView readSurfaceView() const
sk_sp< const SkCapabilities > onCapabilities() override
friend void Flush(SkSurface *)
TextureProxy * backingTextureProxy() const
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
SkImage::ReadPixelsContext ReadPixelsContext
SkImage::ReadPixelsCallback ReadPixelsCallback
void Flush(sk_sp< SkSurface > surface)