DescriptionWhen use the Pepper MapTexSubImage2DCHROMIUM() and the Compositor API together, it may cause memory leak, and then run out of memory. The problem is because the Compositor API uses sync point to sync texture producer and the Chrome compositor, it does not need any IPC, so the PpapiCommandBufferProxy::last_state_[1] will not get updated, so the client does not known when the GPU process finishes accessing the memory, and then the memory can not be reused forever. This change add a shared state in PpapiCommandBufferProxy. It allows PpapiCommandBufferProxy updating state from a shared memory without an IPC. It fix this issue.
BUG=411004
Committed: https://crrev.com/a206fb49cc1af7e022fd5d3028271323b00f3c6d
Cr-Commit-Position: refs/heads/master@{#294012}
Patch Set 1 #Patch Set 2 : WIP #Patch Set 3 : Update #Patch Set 4 : Update #Patch Set 5 : Update #
Total comments: 2
Patch Set 6 : Fix review issue #Patch Set 7 : Fix compile errors in mojo #Patch Set 8 : Remve base/memory/shared_memory.h from DEPS #Messages
Total messages: 20 (7 generated)
|