diff options
author | 2018-04-10 11:45:40 -0400 | |
---|---|---|
committer | 2018-04-11 11:20:02 +0000 | |
commit | a479f96dafa94549ed3b5b72d1d25bacd9d18b16 (patch) | |
tree | fe79b7eaa271b715eecd1c3e632588f690a2d516 /src/gpu | |
parent | 07b3bebcf21001e66b14ca8dd730287857258c68 (diff) |
Get ViaDDL working with Vulkan
Change-Id: Iab5ab689529227d2c8a6dbea89e555b73622a99c
Reviewed-on: https://skia-review.googlesource.com/118989
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/vk/GrVkGpu.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpu/vk/GrVkGpu.cpp b/src/gpu/vk/GrVkGpu.cpp index 3b1b219c31..0011a78552 100644 --- a/src/gpu/vk/GrVkGpu.cpp +++ b/src/gpu/vk/GrVkGpu.cpp @@ -1509,6 +1509,11 @@ GrBackendTexture GrVkGpu::createTestingOnlyBackendTexture(const void* srcData, i GrPixelConfig config, bool isRenderTarget, GrMipMapped mipMapped) { this->handleDirtyContext(); + + if (w > this->caps()->maxTextureSize() || h > this->caps()->maxTextureSize()) { + return GrBackendTexture(); + } + GrVkImageInfo info; if (!this->createTestingOnlyVkImage(config, w, h, true, isRenderTarget, mipMapped, srcData, &info)) { |