• Home
  • Raw
  • Download

Lines Matching refs:dContext

162 SkImage_Gpu::SkImage_Gpu(sk_sp<GrDirectContext> dContext,  in SkImage_Gpu()  argument
168 : INHERITED(std::move(dContext), in SkImage_Gpu()
232 GrSemaphoresSubmitted SkImage_Gpu::onFlush(GrDirectContext* dContext, const GrFlushInfo& info) { in onFlush() argument
233 if (!fContext->priv().matches(dContext) || dContext->abandoned()) { in onFlush()
243 sk_sp<GrSurfaceProxy> proxy = fChooser.chooseProxy(dContext); in onFlush()
244 return dContext->priv().flushSurface(proxy.get(), in onFlush()
336 auto dContext = fContext->asDirectContext(); in onAsyncRescaleAndReadPixels() local
337 if (!dContext) { in onAsyncRescaleAndReadPixels()
342 auto ctx = GrSurfaceContext::Make(dContext, in onAsyncRescaleAndReadPixels()
343 this->makeView(dContext), in onAsyncRescaleAndReadPixels()
349 ctx->asyncRescaleAndReadPixels(dContext, info, srcRect, rescaleGamma, rescaleMode, in onAsyncRescaleAndReadPixels()
361 auto dContext = fContext->asDirectContext(); in onAsyncRescaleAndReadPixelsYUV420() local
362 if (!dContext) { in onAsyncRescaleAndReadPixelsYUV420()
367 auto ctx = GrSurfaceContext::Make(dContext, in onAsyncRescaleAndReadPixelsYUV420()
368 this->makeView(dContext), in onAsyncRescaleAndReadPixelsYUV420()
374 ctx->asyncRescaleAndReadPixelsYUV420(dContext, in onAsyncRescaleAndReadPixelsYUV420()
482 auto dContext = GrAsDirectContext(rContext); in MakeFromAdoptedTexture() local
483 if (!dContext) { in MakeFromAdoptedTexture()
488 const GrCaps* caps = dContext->priv().caps(); in MakeFromAdoptedTexture()
499 return new_wrapped_texture_common(dContext, tex, grColorType, origin, at, std::move(cs), in MakeFromAdoptedTexture()
536 sk_sp<SkImage> SkImage::makeTextureImage(GrDirectContext* dContext, in makeTextureImage() argument
539 if (!dContext) { in makeTextureImage()
542 if (!dContext->priv().caps()->mipmapSupport() || this->dimensions().area() <= 1) { in makeTextureImage()
547 if (!as_IB(this)->context()->priv().matches(dContext)) { in makeTextureImage()
559 auto [view, ct] = as_IB(this)->asView(dContext, mipmapped, policy); in makeTextureImage()
567 return sk_make_sp<SkImage_Gpu>(sk_ref_sp(dContext), in makeTextureImage()
635 sk_sp<SkImage> SkImage::MakeCrossContextFromPixmap(GrDirectContext* dContext, in MakeCrossContextFromPixmap() argument
639 if (!dContext || !dContext->priv().caps()->crossContextTextureSupport()) { in MakeCrossContextFromPixmap()
644 if (!dContext->priv().caps()->mipmapSupport()) { in MakeCrossContextFromPixmap()
650 int maxTextureSize = dContext->priv().caps()->maxTextureSize(); in MakeCrossContextFromPixmap()
667 auto [view, ct] = GrMakeUncachedBitmapProxyView(dContext, bmp, mipmapped); in MakeCrossContextFromPixmap()
675 dContext->priv().flushSurface(view.proxy()); in MakeCrossContextFromPixmap()
676 GrGpu* gpu = dContext->priv().getGpu(); in MakeCrossContextFromPixmap()
696 sk_sp<SkImage> SkImage::MakeFromAHardwareBufferWithData(GrDirectContext* dContext, in MakeFromAHardwareBufferWithData() argument
708 GrBackendFormat backendFormat = GrAHardwareBufferUtils::GetBackendFormat(dContext, in MakeFromAHardwareBufferWithData()
724 GrAHardwareBufferUtils::MakeBackendTexture(dContext, hardwareBuffer, in MakeFromAHardwareBufferWithData()
741 GrProxyProvider* proxyProvider = dContext->priv().proxyProvider(); in MakeFromAHardwareBufferWithData()
753 GrSwizzle swizzle = dContext->priv().caps()->getReadSwizzle(backendFormat, grColorType); in MakeFromAHardwareBufferWithData()
756 sk_sp<SkImage> image = sk_make_sp<SkImage_Gpu>(sk_ref_sp(dContext), in MakeFromAHardwareBufferWithData()
764 GrDrawingManager* drawingManager = dContext->priv().drawingManager(); in MakeFromAHardwareBufferWithData()
770 dContext, std::move(framebufferView),image->imageInfo().colorInfo()); in MakeFromAHardwareBufferWithData()
772 surfaceContext.writePixels(dContext, pixmap, {0, 0}); in MakeFromAHardwareBufferWithData()