Lines Matching defs:context
34 SkImage_GpuYUVA::SkImage_GpuYUVA(sk_sp<GrImageContext> context,
38 : INHERITED(std::move(context),
55 SkImage_GpuYUVA::SkImage_GpuYUVA(sk_sp<GrImageContext> context,
58 : INHERITED(std::move(context),
67 bool SkImage_GpuYUVA::setupMipmapsForPlanes(GrRecordingContext* context) const {
68 if (!context || !fContext->priv().matches(context)) {
71 if (!context->priv().caps()->mipmapSupport()) {
80 auto newView = GrCopyBaseMipMapToView(context, fYUVAProxies.makeView(i));
184 GrRecordingContext* context,
190 if (!fContext->priv().matches(context)) {
196 if (sampler.mipmapped() == GrMipmapped::kYes && !this->setupMipmapsForPlanes(context)) {
203 *context->priv().caps(),
224 sk_sp<SkImage> SkImage::MakeFromYUVATextures(GrRecordingContext* context,
231 GrProxyProvider* proxyProvider = context->priv().proxyProvider();
252 return sk_make_sp<SkImage_GpuYUVA>(sk_ref_sp(context),
258 sk_sp<SkImage> SkImage::MakeFromYUVAPixmaps(GrRecordingContext* context,
263 if (!context) {
271 if (!context->priv().caps()->mipmapSupport()) {
277 int maxTextureSize = context->priv().caps()->maxTextureSize();
314 std::tie(views[i], std::ignore) = GrMakeUncachedBitmapProxyView(context, bmp, buildMips);
323 return sk_make_sp<SkImage_GpuYUVA>(sk_ref_sp(context),
345 // We use the helper to convey the context, so we need to ensure make doesn't fail.