aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/gpu/vk/VkTestContext.h
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2018-06-25 17:16:44 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-06-26 13:16:32 +0000
commitd4b2adeaa929edd1664754ac6621ec524992ef03 (patch)
treebaa4c600030ccb5f390984026a9cf8e071c67065 /tools/gpu/vk/VkTestContext.h
parentf46710802ad50d33fdb9c9a090e7ee83b0f0ef5b (diff)
Move Vulkan DebugCallback code into tools.
Bug: skia: Change-Id: Ib356200e86e54f9ff0ba16396874e6fd10cf0465 Reviewed-on: https://skia-review.googlesource.com/137424 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'tools/gpu/vk/VkTestContext.h')
-rw-r--r--tools/gpu/vk/VkTestContext.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/gpu/vk/VkTestContext.h b/tools/gpu/vk/VkTestContext.h
index 0e62cc0b8c..920f53534e 100644
--- a/tools/gpu/vk/VkTestContext.h
+++ b/tools/gpu/vk/VkTestContext.h
@@ -26,11 +26,13 @@ public:
const GrVkInterface* vk() const { return fVk.fInterface.get(); }
protected:
- VkTestContext(const GrVkBackendContext& vk, bool ownsContext)
- : fVk(vk), fOwnsContext(ownsContext) {}
+ VkTestContext(const GrVkBackendContext& vk, bool ownsContext,
+ VkDebugReportCallbackEXT debugCallback)
+ : fVk(vk), fOwnsContext(ownsContext), fDebugCallback(debugCallback) {}
GrVkBackendContext fVk;
bool fOwnsContext;
+ VkDebugReportCallbackEXT fDebugCallback = VK_NULL_HANDLE;
private:
typedef TestContext INHERITED;