41 std::string_view label)
43 format, dimensions, fit, budgeted, isProtected, surfaceFlags, useAllocator, label)
44 , fSampleCnt(sampleCount)
58 std::string_view label)
68 , fSampleCnt(sampleCount)
69 , fWrapsVkSecondaryCB(wrapsVkSecondaryCB) {}
76 , fSampleCnt(fTarget->asRenderTarget()->numSamples())
77 , fWrapsVkSecondaryCB(wrapsVkSecondaryCB) {
86 !this->requiresManualMSAAResolve());
145size_t GrRenderTargetProxy::onUninstantiatedGpuMemorySize()
const {
146 int colorSamplesPerPixel = this->
numSamples();
147 if (colorSamplesPerPixel > 1) {
149 ++colorSamplesPerPixel;
155 !this->
priv().isExact());
192 SkASSERT(
surface->asRenderTarget()->numSamples() == this->numSamples());
static constexpr int kGrInternalRenderTargetFlagsMask
@ kVkRTSupportsInputAttachment
@ kNo
Don't pre-clip the geometry before applying the (perspective) matrix.
static constexpr bool SkToBool(const T &x)
const GrCaps * caps() const
bool avoidStencilBuffers() const
bool msaaResolvesAutomatically() const
int maxWindowRectangles() const
GrDirectContextPriv priv()
bool refsWrappedObjects() const
const GrDirectContext * getContext() const
ResourcePriv resourcePriv()
GrRenderTargetProxy(const GrCaps &, const GrBackendFormat &, SkISize, int sampleCount, SkBackingFit, skgpu::Budgeted, skgpu::Protected, GrInternalSurfaceFlags, UseAllocator, std::string_view label)
int maxWindowRectangles(const GrCaps &caps) const
bool instantiate(GrResourceProvider *) override
bool glRTFBOIDIs0() const
sk_sp< GrSurface > createSurface(GrResourceProvider *) const override
bool canUseStencil(const GrCaps &caps) const
bool refsWrappedObjects() const
GrAttachment * getStencilAttachment(bool useMSAASurface) const
virtual bool canAttemptStencilAttachment(bool useMSAASurface) const =0
GrProtected isProtected() const
const GrBackendFormat & backendFormat() const
bool instantiateImpl(GrResourceProvider *resourceProvider, int sampleCnt, GrRenderable, skgpu::Mipmapped, const skgpu::UniqueKey *)
GrSurfaceProxyPriv priv()
std::string_view getLabel() const
GrTexture * peekTexture() const
skgpu::Budgeted isBudgeted() const
virtual LazySurfaceDesc callbackDesc() const =0
SkISize dimensions() const
std::function< LazyCallbackResult(GrResourceProvider *, const LazySurfaceDesc &)> LazyInstantiateCallback
virtual GrTextureProxy * asTextureProxy()
GrSurface * peekSurface() const
bool isInstantiated() const
bool isFunctionallyExact() const
sk_sp< GrSurface > createSurfaceImpl(GrResourceProvider *, int sampleCnt, GrRenderable, skgpu::Mipmapped) const
sk_sp< GrSurface > fTarget
GrInternalSurfaceFlags fSurfaceFlags
GrRenderTarget * peekRenderTarget() const
static size_t ComputeSize(const GrBackendFormat &, SkISize dimensions, int colorSamplesPerPixel, skgpu::Mipmapped, bool binSize=false)
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
uint32_t uint32_t * format