commit | b352627436da6fa27ea90ffcc58d6b51adfe82d7 | [log] [tgz] |
---|---|---|
author | mtklein@google.com <mtklein@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Sep 17 19:37:34 2013 +0000 |
committer | mtklein@google.com <mtklein@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Sep 17 19:37:34 2013 +0000 |
tree | 6a58c803f3c8635b3be57d7f221cf7aef7dfd384 | |
parent | 93d2f559b88b7eb59929451000a0e307f17c996f [diff] |
1) 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 Review URL: https://codereview.chromium.org/23890033 git-svn-id: http://skia.googlecode.com/svn/trunk@11329 2bbb7eff-a529-9590-31e7-b0007b416f81