Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa93f387 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Comment that VK_SUBOPTIMAL_KHR not returned window size changes"

parents 1ecc8d1e 1290ea25
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1843,6 +1843,11 @@ VkResult QueuePresentKHR(VkQueue queue, const VkPresentInfoKHR* present_info) {
            if (swapchain_result != VK_SUCCESS) {
                OrphanSwapchain(device, &swapchain);
            }
            // Android will only return VK_SUBOPTIMAL_KHR for vkQueuePresentKHR,
            // and only when the window's transform/rotation changes.  Extent
            // changes will not cause VK_SUBOPTIMAL_KHR because of the
            // application issues that were caused when the following transform
            // change was added.
            int window_transform_hint;
            err = window->query(window, NATIVE_WINDOW_TRANSFORM_HINT,
                                &window_transform_hint);