Description1) Don't allocate 100,000 ints when we only need 1,000.
2) Don't sort past the end of the array when using SkTQSort.
3) Don't allocate any arrays until we need them (in onDraw).
Also, propagate the constant N everywhere through the bench.
BUG=
R=bungeman@google.com
Committed: https://code.google.com/p/skia/source/detail?r=11329
Patch Set 1 #Patch Set 2 : hack #Patch Set 3 : fix test #
Total comments: 6
Patch Set 4 : bungeman #Messages
Total messages: 5 (0 generated)
|