aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGreg Daniel <egdaniel@google.com>2019-01-30 15:13:22 -0500
committerSkia Commit-Bot <skia-commit-bot@chromium.org>2019-01-31 17:44:52 +0000
commit24d861d8bf0a2ef4b37abe4d1f488d85f86f2852 (patch)
tree0015e11e1fd32056fcb56fc25a6d21e3d2cea39e /tools
parent6f59443c9c27c276da5f809ee02b7e752733d904 (diff)
downloadplatform_external_skqp-24d861d8bf0a2ef4b37abe4d1f488d85f86f2852.tar.gz
platform_external_skqp-24d861d8bf0a2ef4b37abe4d1f488d85f86f2852.tar.bz2
platform_external_skqp-24d861d8bf0a2ef4b37abe4d1f488d85f86f2852.zip
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 <jvanverth@google.com> Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/gpu/vk/VkTestContext.cpp4
1 files changed, 2 insertions, 2 deletions
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);