DescriptionPepper takes ownership of a mailbox before passing it to the texture layer.
I replaced the IPC message GpuCommandBufferMsg_ProduceFrontBuffer with
GpuCommandBufferMsg_TakeFrontBuffer and GpuCommandBufferMsg_ReturnFrontBuffer.
TakeFrontBuffer gives ownership of the front buffer to the client. When the
client returns it with ReturnFrontBuffer, the command buffer may choose to reuse
it.
This means that pepper no longer needs to use
SetTextureMailboxWithoutReleaseCallback.
BUG=350204, 602484
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel;tryserver.chromium.win:win_optional_gpu_tests_rel
Committed: https://crrev.com/ed5a6bb9f4321670482acc32a7cb4246a1e22f25
Cr-Commit-Position: refs/heads/master@{#390570}
Patch Set 1 #Patch Set 2 : Remove dead code. #Patch Set 3 : Cleanup. #Patch Set 4 : Fix sync point. #Patch Set 5 : #Patch Set 6 : #Patch Set 7 : Rebase. #Patch Set 8 : scoped_ptr -> unique_ptr #Patch Set 9 : #
Total comments: 7
Patch Set 10 : Comments from ccameron. #Patch Set 11 : Compile errors. #Patch Set 12 : Fix test. #
Total comments: 14
Patch Set 13 : Comments from piman. #
Total comments: 7
Patch Set 14 : Minor nits. #Patch Set 15 : More nits. #Patch Set 16 : Reuse mailboxes. #Patch Set 17 : Fix test. #
Total comments: 6
Patch Set 18 : Comments from piman. #
Total comments: 6
Patch Set 19 : Comments from bbudge. #Messages
Total messages: 72 (29 generated)
|