40 auto backendRT = gpu->createTestingOnlyBackendRenderTarget(size,
colorType);
49 gpu->deleteTestingOnlyBackendRenderTarget(rt);
55 return provider->testingOnly_createInstantiatedProxy(dimensions,
68 return provider->testingOnly_createInstantiatedProxy(dimensions,
82 auto context = ctxInfo.directContext();
84 GrGpu* gpu = context->priv().getGpu();
152 auto context = ctxInfo.directContext();
154 const GrCaps* caps = context->priv().caps();
156 static constexpr SkISize kDims = {64, 64};
165 skgpu::Mipmapped::kNo,
185 skgpu::Mipmapped::kNo,
205 skgpu::Mipmapped::kNo,
void clean_up_wrapped_rt(GrGpu *gpu, sk_sp< GrSurfaceProxy > proxy)
static sk_sp< GrSurfaceProxy > make_texture(GrProxyProvider *provider, SkISize dimensions, GrColorType colorType, GrRenderable renderable)
static sk_sp< GrSurfaceProxy > make_wrapped_rt(GrProxyProvider *provider, GrGpu *gpu, skiatest::Reporter *reporter, const SkISize &size, GrColorType colorType)
static sk_sp< GrSurfaceProxy > make_offscreen_rt(GrProxyProvider *provider, SkISize dimensions, GrColorType colorType)
static SkColorType colorType(AImageDecoder *decoder, const AImageDecoderHeaderInfo *headerInfo)
#define REPORTER_ASSERT(r, cond,...)
#define DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS(name, reporter, context_info, ctsEnforcement)
static constexpr auto kColorType
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)
sk_sp< GrSurfaceProxy > wrapBackendRenderTarget(const GrBackendRenderTarget &, sk_sp< skgpu::RefCntedCallback > releaseHelper)
GrRenderTargetProxy * asRenderTargetProxy() override
virtual GrRenderTargetProxy * asRenderTargetProxy()
virtual GrTextureProxy * asTextureProxy()
GrTextureProxy * asTextureProxy() override
void reset(T *ptr=nullptr)
static constexpr int kSize
uint32_t uint32_t * format
static constexpr SkISize Make(int32_t w, int32_t h)