commit | 785ac97f130af051d2ce348471d806a72993a172 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Wed Mar 10 15:02:24 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Mar 10 15:02:24 2021 +0000 |
tree | e1e994ca5a7b90a828a363040cdd02cc7a0d07b7 | |
parent | 40065e53e207d7c2f96bdf01702b32e80d2542f2 [diff] | |
parent | 1cbf4ebea11a2df45aca6ec4648419df72af6d7a [diff] |
Merge "vulkan: remove redundant native_window_set_buffer_count call" am: b3610529f2 am: 0bc0a4a717 am: 1cbf4ebea1 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1625180 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I3d491d1b02dc1a3821016d88ea59523848dfad19
diff --git a/vulkan/libvulkan/swapchain.cpp b/vulkan/libvulkan/swapchain.cpp index 037d395..020b520 100644 --- a/vulkan/libvulkan/swapchain.cpp +++ b/vulkan/libvulkan/swapchain.cpp
@@ -1093,13 +1093,6 @@ return VK_ERROR_SURFACE_LOST_KHR; } - err = native_window_set_buffer_count(window, 0); - if (err != android::OK) { - ALOGE("native_window_set_buffer_count(0) failed: %s (%d)", - strerror(-err), err); - return VK_ERROR_SURFACE_LOST_KHR; - } - int swap_interval = create_info->presentMode == VK_PRESENT_MODE_MAILBOX_KHR ? 0 : 1; err = window->setSwapInterval(window, swap_interval);