c0ff5a8560
This is needed for enabling Skia's Vulkan backend for Flutter on Windows and iOS 9, as the standard libraries in both of these contexts don't have `std::shared_mutex`. When disabled on Windows, VMA falls back to using Win32 SRWLock. The `vulkan.h` import in `vk_mem_alloc.h` which would normally import `windows.h` is commented out for Skia, and so the relevant symbols need to be declared before importing `vk_mem_alloc.h`. Relevant Flutter Engine PR: https://github.com/flutter/engine/pull/29520 Change-Id: I2b1a621417155071b21e5c6d3b5ccc375c92a622 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/469207 Reviewed-by: Greg Daniel <egdaniel@google.com> Auto-Submit: Brandon DeRosier <bdero@google.com> Commit-Queue: Greg Daniel <egdaniel@google.com> |
||
---|---|---|
.. | ||
include | ||
BUILD.gn | ||
GrVulkanMemoryAllocator.cpp | ||
GrVulkanMemoryAllocator.h | ||
LICENSE |