Lines Matching defs:context
566 auto context = static_cast<AsyncContext*>(c);
567 context->fResult = std::move(result);
568 context->fCalled = true;
578 AsyncContext context;
586 async_callback, &context);
588 while (!context.fCalled) {
591 if (!context.fResult) {
594 SkRectMemcpy(pixels.writable_addr(), pixels.rowBytes(), context.fResult->data(0),
595 context.fResult->rowBytes(0), pixels.info().minRowBytes(),
605 [context = ctxInfo.directContext(), origin](const SkPixmap& src) {
606 auto surf = SkSurface::MakeRenderTarget(context,
620 [context = ctxInfo.directContext(), origin](const SkPixmap& src) {
623 if (context->backend() == GrBackendApi::kDawn) {
626 auto surf = sk_gpu_test::MakeBackendRenderTargetSurface(context,
642 auto context = ctxInfo.directContext();
643 auto reader = std::function<GpuReadSrcFn<Image>>([context](const Image& image,
651 auto format = context->priv().caps()->getDefaultBackendFormat(ct, GrRenderable::kYes);
652 if (!context->priv().caps()->isFormatAsColorTypeRenderable(ct, format)) {
661 context->submit();
663 context->checkAsyncWorkCompletion();
713 // Vulkan and D3D context abandoning without resource release has issues outside of the
761 // destroy the test context. The surface here is holding a ref.