8#ifndef GrSurface_DEFINED
9#define GrSurface_DEFINED
72 int colorSamplesPerPixel,
74 bool binSize =
false);
106#if defined(GR_TEST_UTILS)
107 const GrSurface* asSurface()
const override {
return this; }
143 std::string_view label)
158 const char* getResourceType()
const override {
return "Surface"; }
166 void invokeReleaseProc() {
169 fReleaseHelper.reset();
@ kRequiresManualMSAAResolve
@ kVkRTSupportsInputAttachment
GrGpuResource(GrGpu *, std::string_view label)
RefCntedReleaseProc(sk_sp< skgpu::RefCntedCallback > callback, sk_sp< GrDirectContext > directContext)
virtual GrBackendFormat backendFormat() const =0
void setRelease(sk_sp< skgpu::RefCntedCallback > releaseHelper)
SkISize dimensions() const
bool glRTFBOIDis0() const
static size_t ComputeSize(const GrBackendFormat &, SkISize dimensions, int colorSamplesPerPixel, skgpu::Mipmapped, bool binSize=false)
bool framebufferOnly() const
virtual void onSetRelease(sk_sp< RefCntedReleaseProc >)
void setRequiresManualMSAAResolve()
GrSurface(GrGpu *gpu, const SkISize &dimensions, skgpu::Protected isProtected, std::string_view label)
virtual const GrTexture * asTexture() const
void onAbandon() override
void setVkRTSupportsInputAttachment()
virtual const GrRenderTarget * asRenderTarget() const
virtual GrTexture * asTexture()
bool requiresManualMSAAResolve() const
virtual GrRenderTarget * asRenderTarget()
void setFramebufferOnly()
SkRect getBoundsRect() const
void setRelease(ReleaseProc proc, ReleaseCtx ctx)
void onRelease() override
GrInternalSurfaceFlags flags() const
void(* ReleaseProc)(ReleaseCtx)
static sk_sp< RefCntedCallback > Make(Callback proc, Context ctx)
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
constexpr int32_t width() const
constexpr int32_t height() const
static SkRect Make(const SkISize &size)