summaryrefslogtreecommitdiff
path: root/libs/hwui/ProgramCache.cpp
diff options
context:
space:
mode:
author James Dong <jdong@google.com> 2010-07-28 13:18:14 -0700
committer James Dong <jdong@google.com> 2010-07-28 15:21:59 -0700
commite991e5f334c287737b6d82b050185a20185d7def (patch)
treedd726883a24efef0489938e4a7394f65f48af970 /libs/hwui/ProgramCache.cpp
parentb350bec514eb9fee473e4ef62680c53e992dc49b (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