diff options
| author | 2010-07-28 13:18:14 -0700 | |
|---|---|---|
| committer | 2010-07-28 15:21:59 -0700 | |
| commit | e991e5f334c287737b6d82b050185a20185d7def (patch) | |
| tree | dd726883a24efef0489938e4a7394f65f48af970 /libs/hwui/ProgramCache.cpp | |
| parent | b350bec514eb9fee473e4ef62680c53e992dc49b (diff) | |
Eliminate the linear cost associated with mSampleSizes.size()
- The linear cost associated with mSampleSizes.size() call causes the
CPU load to increase overtime as more and more audio/video samples
are recorded.
- Other Lists used in the MP4 file writer may have similar issues, but
the size() call is not made for each output audio/video output sample,
or the size of the list is bounded (not linear to the total number
of audio/video output samples). As for now, we can live with the small
cost (tested with 30 minutes long recording).
Change-Id: I23bd93ea4256cb0be0c1649760e39e6809eb4946
Diffstat (limited to 'libs/hwui/ProgramCache.cpp')
0 files changed, 0 insertions, 0 deletions