32GrTextureRenderTargetProxy::GrTextureRenderTargetProxy(
const GrCaps&
caps,
42 UseAllocator useAllocator,
44 std::string_view label)
46 format, dimensions, fit, budgeted, isProtected, surfaceFlags, useAllocator, label)
69 this->initSurfaceFlags(
caps);
73GrTextureRenderTargetProxy::GrTextureRenderTargetProxy(
const GrCaps&
caps,
84 UseAllocator useAllocator,
86 std::string_view label)
107 WrapsVkSecondaryCB::
kNo,
121 this->initSurfaceFlags(
caps);
127GrTextureRenderTargetProxy::GrTextureRenderTargetProxy(
sk_sp<GrSurface> surf,
128 UseAllocator useAllocator,
135 SkASSERT(fSurfaceFlags == fTarget->flags());
136 SkASSERT((this->numSamples() <= 1 ||
137 fTarget->getContext()->priv().caps()->msaaResolvesAutomatically()) !=
138 this->requiresManualMSAAResolve());
141void GrTextureRenderTargetProxy::initSurfaceFlags(
const GrCaps&
caps) {
156size_t GrTextureRenderTargetProxy::onUninstantiatedGpuMemorySize()
const {
157 int colorSamplesPerPixel = this->
numSamples();
158 if (colorSamplesPerPixel > 1) {
160 ++colorSamplesPerPixel;
166 !this->
priv().isExact());
228void GrTextureRenderTargetProxy::onValidateSurface(
const GrSurface*
surface) {
236 SkASSERT(
surface->asRenderTarget()->numSamples() == this->numSamples());
static constexpr int kGrInternalTextureRenderTargetFlagsMask
@ kRequiresManualMSAAResolve
@ kVkRTSupportsInputAttachment
@ kNo
Don't pre-clip the geometry before applying the (perspective) matrix.
bool msaaResolvesAutomatically() const
bool glRTFBOIDIs0() const
const GrCaps * caps() const
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
SkISize dimensions() const
bool isFunctionallyExact() const
sk_sp< GrSurface > createSurfaceImpl(GrResourceProvider *, int sampleCnt, GrRenderable, skgpu::Mipmapped) const
GrInternalSurfaceFlags fSurfaceFlags
GrRenderTarget * peekRenderTarget() const
static size_t ComputeSize(const GrBackendFormat &, SkISize dimensions, int colorSamplesPerPixel, skgpu::Mipmapped, bool binSize=false)
virtual GrTexture * asTexture()
virtual GrRenderTarget * asRenderTarget()
GrTextureType textureType() const
skgpu::Mipmapped proxyMipmapped() const
const skgpu::UniqueKey & getUniqueKey() const override
skgpu::Mipmapped mipmapped() const
skgpu::Mipmapped mipmapped() const
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
uint32_t uint32_t * format