DescriptionAdd support to delay sending SwapbufferAck as needed.
On platforms (i.e. ChromeOS using Ozone) where Chromium is responsible for
displaying the buffers, we want to delay SwapBufferAck till we know that
the buffer is displayed on screen. Currently, we block the GPU main thread till
that data is available. This patch introduces SwapBufferAsync apis, which are
similar to current SwapBuffer calls except that it adds a callback function
which can be used to delay sending SwapBufferAck as needed.
BUG=443543, chrome-os-partner:34292
Committed: https://crrev.com/ae4355c2148da9d549134da9d81d68fd1892724e
Cr-Commit-Position: refs/heads/master@{#309602}
Patch Set 1 #
Total comments: 4
Patch Set 2 : Use WeakPtr #Patch Set 3 : Fix Android build. #Patch Set 4 : Add SwapBufferCallBack in Helper. #
Total comments: 5
Patch Set 5 : Fix Android build. #Patch Set 6 : Review fixes. #Patch Set 7 : Fix typo. #Patch Set 8 : Remove GPUMainThread from comments. #Patch Set 9 : Use WeakptrFactory #
Messages
Total messages: 23 (5 generated)
|