Lines Matching defs:dst

703 void GrVkGpu::resolveImage(GrSurface* dst, GrVkRenderTarget* src, const SkIRect& srcRect,
709 SkASSERT(dst);
720 GrRenderTarget* dstRT = dst->asRenderTarget();
721 GrTexture* dstTex = dst->asTexture();
725 SkASSERT(dst->asRenderTarget());
742 this->currentCommandBuffer()->addGrSurface(sk_ref_sp<const GrSurface>(dst));
993 char* dst = buffer + individualMipOffsets[currentMipLevel];
995 SkRectMemcpy(dst, trimRowBytes, src, rowBytes, trimRowBytes, currentHeight);
1536 GrAttachment* dst,
1539 return fMSAALoadManager.loadMSAAFromResolve(this, commandBuffer, renderPass, dst, src, srcRect);
1930 // can also be used for general dst flags since we don't know exactly what the client
2286 void GrVkGpu::copySurfaceAsCopyImage(GrSurface* dst,
2303 SkAssertResult(dst->backendFormat().asVkFormat(&srcFormat));
2307 if (src->isProtected() && !dst->isProtected()) {
2312 // These flags are for flushing/invalidating caches and for the dst image it doesn't matter if
2335 this->currentCommandBuffer()->addGrSurface(sk_ref_sp<const GrSurface>(dst));
2347 this->didWriteToSurface(dst, kTopLeft_GrSurfaceOrigin, &dstRect);
2350 void GrVkGpu::copySurfaceAsBlit(GrSurface* dst,
2367 SkAssertResult(dst->backendFormat().asVkFormat(&srcFormat));
2378 if (src->isProtected() && !dst->isProtected()) {
2409 this->currentCommandBuffer()->addGrSurface(sk_ref_sp<const GrSurface>(dst));
2418 this->didWriteToSurface(dst, kTopLeft_GrSurfaceOrigin, &dstRect);
2421 void GrVkGpu::copySurfaceAsResolve(GrSurface* dst, GrSurface* src, const SkIRect& srcRect,
2423 if (src->isProtected() && !dst->isProtected()) {
2428 this->resolveImage(dst, srcRT, srcRect, dstPoint);
2432 this->didWriteToSurface(dst, kTopLeft_GrSurfaceOrigin, &dstRect);
2435 bool GrVkGpu::onCopySurface(GrSurface* dst, GrSurface* src, const SkIRect& srcRect,
2441 if (GrVkRenderTarget* dstRT = static_cast<GrVkRenderTarget*>(dst->asRenderTarget())) {
2445 if (src->isProtected() && !dst->isProtected()) {
2452 GrRenderTarget* dstRT = dst->asRenderTarget();
2466 } else if (dst->asTexture()) {
2467 dstImage = static_cast<GrVkTexture*>(dst->asTexture())->textureImage();
2470 dstImage = static_cast<GrVkImage*>(dst);
2502 this->copySurfaceAsResolve(dst, src, srcRect, dstPoint);
2508 this->copySurfaceAsCopyImage(dst, src, dstImage, srcImage, srcRect, dstPoint);
2520 this->copySurfaceAsBlit(dst, src, dstImage, srcImage, srcRect, dstPoint);