aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/sk_app
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2018-06-26 10:03:34 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-06-27 14:29:45 +0000
commit45c9dab4c3ec43cedb28d1b8c08e166fe0c2e767 (patch)
treeb9192a66834a7b9e53b7018a032ef7a9416a6d76 /tools/sk_app
parent37b7e471455896c368cae847141545c5c80908af (diff)
Let client pass in full extension to GrVkBackendContext.
Bug: skia: Change-Id: I772ab4ccbca0f4f7e7d429d6c421b07d97f0606f Reviewed-on: https://skia-review.googlesource.com/131880 Reviewed-by: Jim Van Verth <jvanverth@google.com> Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'tools/sk_app')
-rw-r--r--tools/sk_app/VulkanWindowContext.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/sk_app/VulkanWindowContext.cpp b/tools/sk_app/VulkanWindowContext.cpp
index 8e0749ec1b..d038c97e34 100644
--- a/tools/sk_app/VulkanWindowContext.cpp
+++ b/tools/sk_app/VulkanWindowContext.cpp
@@ -12,6 +12,7 @@
#include "SkSurface.h"
#include "VulkanWindowContext.h"
+#include "vk/GrVkExtensions.h"
#include "vk/GrVkImage.h"
#include "vk/GrVkUtil.h"
#include "vk/GrVkTypes.h"
@@ -56,8 +57,8 @@ void VulkanWindowContext::initializeContext() {
return;
}
- if (!(backendContext.fExtensions & kKHR_surface_GrVkExtensionFlag) ||
- !(backendContext.fExtensions & kKHR_swapchain_GrVkExtensionFlag)) {
+ if (!backendContext.fInterface->fExtensions.hasExtension(VK_KHR_SURFACE_EXTENSION_NAME) ||
+ !backendContext.fInterface->fExtensions.hasExtension(VK_KHR_SWAPCHAIN_EXTENSION_NAME)) {
return;
}