129 SkDebugf(
"Couldn't create backend texture in the backend %s",
130 GrBackendApiToStr(dContext->
backend()));
136 if (!backendFormat.
isValid()) {
137 SkDebugf(
"Color Type is not supported in the backend %s",
138 GrBackendApiToStr(dContext->
backend()));
158 SkDebugf(
"Could not create Characterization in the backend %s",
159 GrBackendApiToStr(dContext->
backend()));
170 SkDebugf(
"Could not create canvas for backend %s", GrBackendApiToStr(dContext->
backend()));
222 SkDebugf(
"Context creation failed");
227 if (!
surface || !c.isValid()) {
233 SkDebugf(
"Could not create ddl %s", GrBackendApiToStr(dContext->
backend()));
237 SkDebugf(
"Could not draw ddl in the backend");
static sk_sp< GrDeferredDisplayList > make_ddl(Fuzz *fuzz, GrDirectContext *dContext, const GrSurfaceCharacterization &c)
static bool draw_ddl(sk_sp< SkSurface > surface, sk_sp< const GrDeferredDisplayList > ddl)
std::tuple< sk_sp< SkSurface >, GrSurfaceCharacterization > SurfaceAndChar
static GrSurfaceCharacterization make_characterization(Fuzz *fuzz, GrDirectContext *dContext, SkImageInfo &ii, SkColorType surfaceType, GrSurfaceOrigin origin)
static constexpr int kMaxHeight
static SkPaint gen_fuzzed_skpaint(Fuzz *fuzz)
static constexpr int kSampleCount
DEF_FUZZ(CreateDDL, fuzz)
static constexpr int kMaxWidth
static SurfaceAndChar create_surface_and_characterization(Fuzz *fuzz, GrDirectContext *dContext, SkColorType surfaceType, GrSurfaceOrigin origin)
static sk_sp< SkSurface > make_surface(Fuzz *fuzz, GrDirectContext *dContext, const SkImageInfo &ii, GrSurfaceOrigin origin)
static SkImageInfo gen_fuzzed_imageinfo(Fuzz *fuzz, SkColorType surfaceType)
static SkSurfaceProps gen_fuzzed_surface_props(Fuzz *fuzz)
@ kTopLeft_GrSurfaceOrigin
@ kLastEnum_SkAlphaType
last valid value
@ kLastEnum_SkColorType
last valid value
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static void skcms(char *dst, const char *src, int n, skcms_PixelFormat srcFmt, skcms_AlphaFormat srcAlpha, skcms_PixelFormat dstFmt, skcms_AlphaFormat dstAlpha)
void nextRange(T *, Min, Max)
void nextEnum(T *ptr, T max)
GrSurfaceCharacterization createCharacterization(size_t cacheMaxResourceBytes, const SkImageInfo &ii, const GrBackendFormat &backendFormat, int sampleCount, GrSurfaceOrigin origin, const SkSurfaceProps &surfaceProps, skgpu::Mipmapped isMipmapped, bool willUseGLFBO0=false, bool isTextureable=true, skgpu::Protected isProtected=GrProtected::kNo, bool vkRTSupportsInputAttachment=false, bool forVulkanSecondaryCommandBuffer=false)
SK_API GrBackendApi backend() const
SK_API GrBackendFormat defaultBackendFormat(SkColorType, GrRenderable) const
sk_sp< GrDeferredDisplayList > detach()
SK_API bool colorTypeSupportedAsSurface(SkColorType colorType) const
size_t getResourceCacheLimit() const
sk_sp< GrContextThreadSafeProxy > threadSafeProxy()
void drawRect(const SkRect &rect, const SkPaint &paint)
static sk_sp< SkColorSpace > MakeRGB(const skcms_TransferFunction &transferFn, const skcms_Matrix3x3 &toXYZ)
ContextInfo getContextInfo(ContextType type, ContextOverrides=ContextOverrides::kNone)
static constexpr skcms_Matrix3x3 kSRGB
static constexpr skcms_Matrix3x3 kAdobeRGB
static constexpr skcms_Matrix3x3 kXYZ
static constexpr skcms_Matrix3x3 kRec2020
static constexpr skcms_Matrix3x3 kDisplayP3
static constexpr skcms_TransferFunction kRec2020
static constexpr skcms_TransferFunction k2Dot2
static constexpr skcms_TransferFunction kSRGB
static constexpr skcms_TransferFunction kHLG
static constexpr skcms_TransferFunction kPQ
static constexpr skcms_TransferFunction kLinear
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)
SK_API bool DrawDDL(SkSurface *, sk_sp< const GrDeferredDisplayList > ddl)
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)