summaryrefslogtreecommitdiff
path: root/libs/hwui/ProgramCache.cpp
diff options
context:
space:
mode:
author Kenny Root <kroot@google.com> 2010-07-27 15:18:38 -0700
committer Kenny Root <kroot@google.com> 2010-07-28 14:45:14 -0700
commitc78a8079740bfcad2e4439ccd74da52f6dc7fae2 (patch)
tree32980045a8a1e809f407a9c7c9ba51d283bfd004 /libs/hwui/ProgramCache.cpp
parent7feab3470156c7864fe159115d575c16f0974493 (diff)
Fix getTempContainerId()
getTempContainerId() would always return "smdl2tmp1" unless you had MAX_CONTAINERS number of SD card SDKs, because of an array sort that put all the zeros at the beginning. Switch from trying to find a hole in the series of numbers to just getting a number that's one larger than the previous. This reduces the algorithmic complexity and the memory requirements. Bug: 2832580 Change-Id: I32dc75ef5a6645f594ea47b032d7402e8860ebcd
Diffstat (limited to 'libs/hwui/ProgramCache.cpp')
0 files changed, 0 insertions, 0 deletions