diff options
author | Rucha Katakwar <ruchamk@google.com> | 2021-08-25 11:39:27 -0700 |
---|---|---|
committer | Rucha Katakwar <ruchamk@google.com> | 2021-09-14 18:42:01 +0000 |
commit | 2d99c9f930f6c438bf83e379953552c71c3ae345 (patch) | |
tree | c196f334f48cb568c3ca098c88b8aaaaad70b0d0 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | a888b50f1c9a2be50c3b74b60f2ce93e2f8ade5d (diff) |
Camera:Fix the memory leak caused during HFR mode.
During high speed recording mode, it was observed that there was a
memory leak due to too many nodes at mPendingFrameNumbersWithOtherType
list. After ag/1962479 added batching for HFR it only updates the
FrameNumberTracker every 4 or 8 frames during high speed recording. This
change fixes that by updating every frame. A map is used to store
requestIds which have batchOutput. For every such requests we update
each frame in the batch in a for loop.
bug: 194618660
Test: 1. Did validity check with the change. Now frameNumber is incremented
by 1 instead of every 4 or 8 in FrameNumberTracker.
2. The mPendingFrameNumbersWithOtherType for otherType is empty during
HFR recording.
3. Verified using other modes of camera and did not observe any
crashes.
4. CTS tests Pass.
Change-Id: I2638e6663e7b70e4ef7a29dfeb27d423c9c7137d
(cherry picked from commit 236ed73e2663f15d89bbf0e4a2171f5595eb0143)
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions