28#include <initializer_list>
68 auto dContext = ctxInfo.directContext();
static sk_sp< GrTextureProxy > make_wrapped(GrRecordingContext *rContext)
static sk_sp< GrTextureProxy > make_deferred(GrRecordingContext *rContext)
DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS(ProxyRefTest, reporter, ctxInfo, CtsEnforcement::kApiLevel_T)
static const int kWidthHeight
void CheckSingleThreadedProxyRefs(skiatest::Reporter *reporter, GrSurfaceProxy *proxy, int32_t expectedProxyRefs, int32_t expectedBackingRefs)
const GrCaps * caps() const
GrBackendFormat getDefaultBackendFormat(GrColorType, GrRenderable) const
sk_sp< GrTextureProxy > createProxy(const GrBackendFormat &, SkISize dimensions, GrRenderable, int renderTargetSampleCnt, skgpu::Mipmapped, SkBackingFit, skgpu::Budgeted, GrProtected, std::string_view label, GrInternalSurfaceFlags=GrInternalSurfaceFlags::kNone, UseAllocator useAllocator=UseAllocator::kYes)
GrProxyProvider * proxyProvider()
GrRecordingContextPriv priv()
GrResourceProviderPriv priv()
bool isInstantiated() const
bool instantiate(GrResourceProvider *) override
uint32_t uint32_t * format
static void make(SkBitmap *bitmap, SkColorType colorType, SkAlphaType alphaType, sk_sp< SkColorSpace > colorSpace)