From 24d861d8bf0a2ef4b37abe4d1f488d85f86f2852 Mon Sep 17 00:00:00 2001 From: Greg Daniel Date: Wed, 30 Jan 2019 15:13:22 -0500 Subject: Add hardware buffer unit test from old skqp to skia. This copies the hardware buffer unit test from, which was cherry picked straight into skqp last year, into Skia proper. There are not functional changes, but a few of the APIs have been updated to work with newer Skia. Bug: skia: Change-Id: I2d7b2ed8b0b9314ca3e03e703a6a5ac53805275e Reviewed-on: https://skia-review.googlesource.com/c/188034 Reviewed-by: Jim Van Verth Commit-Queue: Greg Daniel --- tools/gpu/vk/VkTestContext.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/gpu/vk/VkTestContext.cpp b/tools/gpu/vk/VkTestContext.cpp index e73835a84f..18c2393d11 100644 --- a/tools/gpu/vk/VkTestContext.cpp +++ b/tools/gpu/vk/VkTestContext.cpp @@ -180,6 +180,7 @@ public: features, &debugCallback)) { sk_gpu_test::FreeVulkanFeaturesStructs(features); delete features; + delete extensions; return nullptr; } if (debugCallback != VK_NULL_HANDLE) { @@ -226,8 +227,7 @@ protected: grVkDestroyDevice(fVk.fDevice, nullptr); #ifdef SK_ENABLE_VK_LAYERS if (fDebugCallback != VK_NULL_HANDLE) { - ACQUIRE_VK_PROC_LOCAL(DestroyDebugReportCallbackEXT, fVk.fInstance); - grVkDestroyDebugReportCallbackEXT(fVk.fInstance, fDebugCallback, nullptr); + fDestroyDebugReportCallbackEXT(fVk.fInstance, fDebugCallback, nullptr); } #endif grVkDestroyInstance(fVk.fInstance, nullptr); -- cgit v1.2.3