Chromium Code Reviews
Descriptionexo: Cleanup and make buffer release code more robust.
Since the introduction of CompositorFrameSinkHolder it's possible
for release callbacks to be lost. This is because we rely on the
use count to drop to 0 but we're only guaranteed to get a callback
for the last frame as we only keep one CompositorFrameSinkHolder
reference.
This removes the use count in favor of a simple cancelable callback.
The use count was never necessary as attaching the buffer to
multiple surfaces is a client behavior that results in undefined
release callback behavior. Running the callback when the last
attachment is released is not worse then sending it when all
attachments have been released.
BUG=659601
TEST=exo_unittests --gtest_filter=BufferTest.*
Review-Url: https://codereview.chromium.org/2666233002
Cr-Commit-Position: refs/heads/master@{#447593}
Committed: https://chromium.googlesource.com/chromium/src/+/2cd69789c0cc1bf7b35f6c5673ba1db6f2273cf0
Patch Set 1 #
Total comments: 2
Patch Set 2 : fix typo #
Messages
Total messages: 20 (12 generated)
|
||||||||||||||||||||||||||||