54 return sampler_params_invalid(parameters) && nonsampler_params_invalid(parameters);
58 if (nonsampler_params_invalid(parameters)) {
70 auto dContext = ctxInfo.directContext();
71 auto caps =
static_cast<const GrGLCaps*
>(dContext->priv().caps());
100 auto parameters =
texture->parameters();
120 surf->getCanvas()->drawImage(wrappedImage, 0, 0);
136 !GrBackendTexture::TestingOnly_Equals(invalidTexture, backendTexCopy));
138 backendTexCopy = invalidTexture;
141 !GrBackendTexture::TestingOnly_Equals(invalidTexture, backendTexCopy));
143 invalidTexture = backendTex;
147 invalidTexture =
static_cast<decltype(invalidTexture)&
>(invalidTexture);
151 wrappedImage.
reset();
154 dContext->deleteBackendTexture(backendTex);
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
@ kTopLeft_GrSurfaceOrigin
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
@ kRGBA_8888_SkColorType
pixel with 8 bits for red, green, blue, alpha; in 32-bit word
static constexpr bool SkIsNaN(T x)
#define REPORTER_ASSERT(r, cond,...)
#define DEF_GANESH_TEST_FOR_GL_CONTEXT(name, reporter, context_info, ctsEnforcement)
bool isSameTexture(const GrBackendTexture &)
bool useSamplerObjects() const
const SamplerOverriddenState & samplerOverriddenState() const
const NonsamplerState & nonsamplerState() const
GrTexture * peekTexture() const
bool isInstantiated() const
void reset(T *ptr=nullptr)
SK_API void GLTextureParametersModified(GrBackendTexture *)
SK_API bool GetGLTextureInfo(const GrBackendTexture &, GrGLTextureInfo *)
SK_API sk_sp< SkImage > BorrowTextureFrom(GrRecordingContext *context, const GrBackendTexture &backendTexture, GrSurfaceOrigin origin, SkColorType colorType, SkAlphaType alphaType, sk_sp< SkColorSpace > colorSpace, TextureReleaseProc textureReleaseProc=nullptr, ReleaseContext releaseContext=nullptr)
SK_API sk_sp< SkSurface > RenderTarget(GrRecordingContext *context, skgpu::Budgeted budgeted, const SkImageInfo &imageInfo, int sampleCount, GrSurfaceOrigin surfaceOrigin, const SkSurfaceProps *surfaceProps, bool shouldCreateWithMips=false, bool isProtected=false)
GrTextureProxy * GetTextureImageProxy(SkImage *image, GrRecordingContext *rContext)
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)