• Home
  • Raw
  • Download

Lines Matching refs:dContext

124 static SkSurfaceCharacterization make_characterization(Fuzz* fuzz, GrDirectContext* dContext,  in make_characterization()  argument
127 if (!dContext->colorTypeSupportedAsSurface(surfaceType)) { in make_characterization()
129 GrBackendApiToStr(dContext->backend())); in make_characterization()
133 GrBackendFormat backendFormat = dContext->defaultBackendFormat(surfaceType, in make_characterization()
137 GrBackendApiToStr(dContext->backend())); in make_characterization()
145 size_t maxResourceBytes = dContext->getResourceCacheLimit(); in make_characterization()
146 c = dContext->threadSafeProxy()->createCharacterization( in make_characterization()
152 GrBackendApiToStr(dContext->backend())); in make_characterization()
158 static sk_sp<SkDeferredDisplayList> make_ddl(Fuzz* fuzz, GrDirectContext* dContext, in make_ddl() argument
163 SkDebugf("Could not create canvas for backend %s", GrBackendApiToStr(dContext->backend())); in make_ddl()
173 static sk_sp<SkSurface> make_surface(Fuzz* fuzz, GrDirectContext* dContext, const SkImageInfo& ii, in make_surface() argument
178 auto surface = SkSurface::MakeRenderTarget(dContext, budgeted, ii, kSampleCount, origin, in make_surface()
188 static SurfaceAndChar create_surface_and_characterization(Fuzz* fuzz, GrDirectContext* dContext, in create_surface_and_characterization() argument
192 SkSurfaceCharacterization c = make_characterization(fuzz, dContext, ii, surfaceType, origin); in create_surface_and_characterization()
197 auto surface = make_surface(fuzz, dContext, ii, origin); in create_surface_and_characterization()
213 GrDirectContext* dContext = ctxInfo.directContext(); in DEF_FUZZ() local
214 if (!dContext) { in DEF_FUZZ()
219 auto[surface, c] = create_surface_and_characterization(fuzz, dContext, surfaceType, origin); in DEF_FUZZ()
224 sk_sp<SkDeferredDisplayList> ddl = make_ddl(fuzz, dContext, c); in DEF_FUZZ()
226 SkDebugf("Could not create ddl %s", GrBackendApiToStr(dContext->backend())); in DEF_FUZZ()