commit | 9fab59d3a6f652e25aace376acc4e54c1ba1ce4a | [log] [tgz] |
---|---|---|
author | jvanverth <jvanverth@google.com> | Wed Apr 06 12:08:51 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Wed Apr 06 12:08:51 2016 -0700 |
tree | 508c3abea4132834a826a064cf92e0a049f8b245 | |
parent | b0070197ff10500a9cdcc6bb0984c670de58f523 [diff] [blame] |
Clean up input handling in VulkanViewer Sets up proper handling of characters and keycodes, and event modifiers. GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1865553005 Review URL: https://codereview.chromium.org/1865553005
diff --git a/tools/vulkan/VulkanTestContext.cpp b/tools/vulkan/VulkanTestContext.cpp index 4a4c219..f9f037d 100644 --- a/tools/vulkan/VulkanTestContext.cpp +++ b/tools/vulkan/VulkanTestContext.cpp
@@ -79,8 +79,7 @@ return; } - // get this info from somewhere? - if (!this->createSwapchain(1024, 768)) { + if (!this->createSwapchain(-1, -1)) { this->destroyContext(); return; } @@ -152,7 +151,7 @@ extent.height = height; } - // clamp width; to protect us from broken hints? + // clamp width; to protect us from broken hints if (extent.width < caps.minImageExtent.width) { extent.width = caps.minImageExtent.width; } else if (extent.width > caps.maxImageExtent.width) {