Lines Matching refs:direct
78 // If this image is used off the direct context it originated on, i.e. on a recording-only
79 // context, we don't know how the recording context's actions are ordered WRT direct context
80 // actions until the recording context's DAG is imported into the direct context.
206 // We only attempt to make a dual-proxy image on a direct context. This optimziation requires
209 if (auto direct = sk_ref_sp(rContext->asDirectContext())) {
211 return sk_sp<SkImage>(new SkImage_Gpu(std::move(direct),
253 auto direct = fContext->asDirectContext();
254 if (!direct) {
258 if (direct->abandoned()) {
267 auto resourceProvider = direct->priv().resourceProvider();
277 direct->priv().flushSurface(proxy.get());
499 sk_sp<SkImage> SkImage::MakeTextureFromCompressed(GrDirectContext* direct, sk_sp<SkData> data,
504 if (!direct || !data) {
508 GrBackendFormat beFormat = direct->compressedBackendFormat(type);
514 return tmp->makeTextureImage(direct, mipMapped);
517 GrProxyProvider* proxyProvider = direct->priv().proxyProvider();
530 return sk_make_sp<SkImage_Gpu>(sk_ref_sp(direct),
781 bool SkImage::MakeBackendTextureFromSkImage(GrDirectContext* direct,
789 auto [view, ct] = as_IB(image)->asView(direct, GrMipmapped::kNo);
796 direct->priv().flushSurface(view.proxy());
807 image = as_IB(image)->onMakeSubset(image->bounds(), direct);
811 return MakeBackendTextureFromSkImage(direct, std::move(image), backendTexture, releaseProc);