diff options
author | Greg Daniel <egdaniel@google.com> | 2018-04-10 13:00:48 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-04-10 17:41:32 +0000 |
commit | ff7fa50f0c95adaca768e0a1c17e0264d16bd8c8 (patch) | |
tree | 1dd3a57c81a7d6547ebb0eb389ecf2137506a119 /include/gpu | |
parent | 321fb4e456526f58815f95299c1dd4d54a81ed18 (diff) |
Add ctor to GrVkImageInfo.
Adds an additional ctor so clients who used brace initialization on the
struct don't break.
Bug: skia:
Change-Id: I78ebdbe8242147e48859f2234265365141fe81b1
Reviewed-on: https://skia-review.googlesource.com/120185
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'include/gpu')
-rw-r--r-- | include/gpu/vk/GrVkTypes.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/gpu/vk/GrVkTypes.h b/include/gpu/vk/GrVkTypes.h index e57845ec5d..6c6ebc7737 100644 --- a/include/gpu/vk/GrVkTypes.h +++ b/include/gpu/vk/GrVkTypes.h @@ -83,6 +83,15 @@ struct GrVkImageInfo { , fFormat(VK_FORMAT_UNDEFINED) , fLevelCount(0) {} + GrVkImageInfo(VkImage image, GrVkAlloc alloc, VkImageTiling imageTiling, VkImageLayout layout, + VkFormat format, uint32_t levelCount) + : fImage(image) + , fAlloc(alloc) + , fImageTiling(imageTiling) + , fImageLayout(layout) + , fFormat(format) + , fLevelCount(levelCount) {} + GrVkImageInfo(const GrVkImageInfo& info, VkImageLayout layout) : fImage(info.fImage) , fAlloc(info.fAlloc) |