From d2d367d1724d87db610fb15c31fb4d6b5e2db970 Mon Sep 17 00:00:00 2001 From: Greg Daniel Date: Mon, 16 Apr 2018 10:24:45 -0400 Subject: No long require copy as draw for vulkan wrapped resources. With the recent changes to GrBackendTexture and the atomic ref counted GrVkImageLayout, this should not longer be an issue for cross context images. There still is the requirement that they need to manually synchronize the submission of work involving the image on two threads, but that is a requirement regardless of layout issues. Bug: skia: Change-Id: Ia86e51fda8606838dabd1bc36cf14c7679b46d49 Reviewed-on: https://skia-review.googlesource.com/121349 Commit-Queue: Greg Daniel Reviewed-by: Brian Osman --- src/gpu/vk/GrVkGpu.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/gpu/vk') diff --git a/src/gpu/vk/GrVkGpu.cpp b/src/gpu/vk/GrVkGpu.cpp index 481232ebda..800751053a 100644 --- a/src/gpu/vk/GrVkGpu.cpp +++ b/src/gpu/vk/GrVkGpu.cpp @@ -1918,11 +1918,6 @@ bool GrVkGpu::onCopySurface(GrSurface* dst, GrSurfaceOrigin dstOrigin, srcImage = static_cast(src->asTexture()); } - // For borrowed textures, we *only* want to copy using draws (to avoid layout changes) - if (srcImage->isBorrowed()) { - return false; - } - if (can_copy_image(dst, dstOrigin, src, srcOrigin, this)) { this->copySurfaceAsCopyImage(dst, dstOrigin, src, srcOrigin, dstImage, srcImage, srcRect, dstPoint); -- cgit v1.2.3