Lines Matching refs:rContext
187 sk_sp<SkImage> SkImage_Gpu::MakeWithVolatileSrc(sk_sp<GrRecordingContext> rContext, in MakeWithVolatileSrc() argument
190 SkASSERT(rContext); in MakeWithVolatileSrc()
195 auto copy = GrSurfaceProxy::Copy(rContext.get(), in MakeWithVolatileSrc()
208 if (auto direct = sk_ref_sp(rContext->asDirectContext())) { in MakeWithVolatileSrc()
218 return sk_make_sp<SkImage_Gpu>(std::move(rContext), in MakeWithVolatileSrc()
389 static sk_sp<SkImage> new_wrapped_texture_common(GrRecordingContext* rContext, in new_wrapped_texture_common() argument
401 GrProxyProvider* proxyProvider = rContext->priv().proxyProvider(); in new_wrapped_texture_common()
408 GrSwizzle swizzle = rContext->priv().caps()->getReadSwizzle(proxy->backendFormat(), colorType); in new_wrapped_texture_common()
411 return sk_make_sp<SkImage_Gpu>(sk_ref_sp(rContext), in new_wrapped_texture_common()
417 sk_sp<SkImage> SkImage::MakeFromCompressedTexture(GrRecordingContext* rContext, in MakeFromCompressedTexture() argument
426 if (!rContext) { in MakeFromCompressedTexture()
430 const GrCaps* caps = rContext->priv().caps(); in MakeFromCompressedTexture()
436 GrProxyProvider* proxyProvider = rContext->priv().proxyProvider(); in MakeFromCompressedTexture()
447 return sk_make_sp<SkImage_Gpu>(sk_ref_sp(rContext), in MakeFromCompressedTexture()
453 sk_sp<SkImage> SkImage::MakeFromTexture(GrRecordingContext* rContext, in MakeFromTexture() argument
459 if (!rContext) { in MakeFromTexture()
463 const GrCaps* caps = rContext->priv().caps(); in MakeFromTexture()
474 return new_wrapped_texture_common(rContext, tex, grColorType, origin, at, std::move(cs), in MakeFromTexture()
478 sk_sp<SkImage> SkImage::MakeFromAdoptedTexture(GrRecordingContext* rContext, in MakeFromAdoptedTexture() argument
482 auto dContext = GrAsDirectContext(rContext); in MakeFromAdoptedTexture()
852 GrRecordingContext* rContext, in onAsFragmentProcessor() argument
858 if (!fContext->priv().matches(rContext)) { in onAsFragmentProcessor()
862 return MakeFragmentProcessorFromView(rContext, in onAsFragmentProcessor()
863 std::get<0>(this->asView(rContext, mm)), in onAsFragmentProcessor()
872 GrSurfaceProxyView SkImage_Gpu::makeView(GrRecordingContext* rContext) const { in makeView()
873 return {fChooser.chooseProxy(rContext), fOrigin, fSwizzle}; in makeView()