commit | e31a52dde7af46f84829ec3b3f6fb6180587d168 | [log] [tgz] |
---|---|---|
author | Brian Lindahl <blindahl@google.com> | Wed Apr 05 08:49:23 2023 -0600 |
committer | Brian Lindahl <blindahl@google.com> | Wed Apr 26 15:57:33 2023 +0000 |
tree | bdb2b79aa6daff855897137f7a26f026c5b31949 | |
parent | 348611a6f8ad748b39980868f92311b64dc41074 [diff] [blame] |
Send onFrameRendered differently depending on whether the surface is a display When rendering on the display, only send onFrameRendered when the video frame is actually rendered on the display. Otherwise, send it when it is queued to the surface. Bug: 234833109 Bug: 274472195 Test: atest DecoderRenderTest Change-Id: I35f1e8a844d9a96b04d8c6b2c00881e7ec09f98d Merged-In: I35f1e8a844d9a96b04d8c6b2c00881e7ec09f98d
diff --git a/media/codec2/sfplugin/CCodecBufferChannel.h b/media/codec2/sfplugin/CCodecBufferChannel.h index e2e55b9..763eae9 100644 --- a/media/codec2/sfplugin/CCodecBufferChannel.h +++ b/media/codec2/sfplugin/CCodecBufferChannel.h
@@ -330,6 +330,7 @@ sp<MemoryDealer> makeMemoryDealer(size_t heapSize); std::deque<TrackedFrame> mTrackedFrames; + bool mIsSurfaceToDisplay; bool mHasPresentFenceTimes; struct OutputSurface {