diff options
author | 2016-09-27 08:00:53 -0700 | |
---|---|---|
committer | 2016-09-27 08:00:53 -0700 | |
commit | bc9b2963bf9e39c47ae5c3ab94b8503b476f4f0e (patch) | |
tree | dd1fe0200d6191882ffb251d1a150f32f418b3cd /src/gpu/vk/GrVkCaps.h | |
parent | cefee07bf7c5f8ae3016d8c00674f078c2fdb592 (diff) |
Add GrVkCopyPipeline to handle vulkan copies as draws
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2274663005
Review-Url: https://codereview.chromium.org/2274663005
Diffstat (limited to 'src/gpu/vk/GrVkCaps.h')
-rw-r--r-- | src/gpu/vk/GrVkCaps.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gpu/vk/GrVkCaps.h b/src/gpu/vk/GrVkCaps.h index 6f46952f43..8e8953e522 100644 --- a/src/gpu/vk/GrVkCaps.h +++ b/src/gpu/vk/GrVkCaps.h @@ -70,6 +70,10 @@ public: return fAllowInitializationErrorOnTearDown; } + bool supportsCopiesAsDraws() const { + return fSupportsCopiesAsDraws; + } + /** * Returns both a supported and most prefered stencil format to use in draws. */ @@ -128,6 +132,9 @@ private: // flag says we will accept VK_ERROR_INITIALIZATION_FAILED as well. bool fAllowInitializationErrorOnTearDown; + // Check whether we support using draws for copies. + bool fSupportsCopiesAsDraws; + typedef GrCaps INHERITED; }; |