Chromium Code Reviews
DescriptionAdd SurfaceTexture::release and call it from AVDA.
SurfaceTexture::release() discards unused buffers and tears down the
SurfaceTexture, leaving only the front buffer if it's bound to a GL
texture. This CL plumbs that down to native.
This CL also uses it for AVDA, so that back buffers don't take up
memory when the deferred strategy is shut down.
As part of that, it splits strategy cleanup into two parts. The
first is called before flush, while the latter is called after.
This prevents transitioning the SurfaceTexture into the released
state while the flush is still trying to talk to MediaCodec. It's
unclear that would be safe.
BUG=619658
Committed: https://crrev.com/2c238bbd17a40008c3d0a2b437f36fd8b0455f0e
Cr-Commit-Position: refs/heads/master@{#402187}
Patch Set 1 #
Total comments: 1
Messages
Total messages: 21 (10 generated)
|