diff options
author | Greg Daniel <egdaniel@google.com> | 2018-04-16 10:24:45 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-04-17 18:36:44 +0000 |
commit | d2d367d1724d87db610fb15c31fb4d6b5e2db970 (patch) | |
tree | 8dfb059a74b6f2b1ad9f0425f6d901ddd44ea42f /src/gpu/vk | |
parent | 4eb6f7a698e80ce0faa7e3700e6cfd0d89f99089 (diff) |
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 <egdaniel@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Diffstat (limited to 'src/gpu/vk')
-rw-r--r-- | src/gpu/vk/GrVkGpu.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
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<GrVkTexture*>(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); |