aboutsummaryrefslogtreecommitdiff
path: root/samplecode/SamplePdfFileViewer.cpp
diff options
context:
space:
mode:
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-07-11 14:26:09 +0000
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-07-11 14:26:09 +0000
commit0c4e21da9598a2eb5324e90ac8648048a1a34636 (patch)
tree836e3a7e1c63de71ec0618e86eece09d959e5cfd /samplecode/SamplePdfFileViewer.cpp
parentab4098b4d3ceb952dc7bea7e28a38387830acad6 (diff)
Streamline picture_record_recurring_ bench.
Reduce benchmark runtime from ~17 ms to ~13.25ms by moving SkPaint construction out of the inner loop and by using random colors in the SkPaints instead of sequential integers, which were seeing bad hashing. This doesn't actually improve our performance, but makes the benchmark more focused on pure recording costs. BUG= R=mtklein@google.com, reed@google.com, tomhudson@google.com Author: tomhudson@chromium.org Review URL: https://chromiumcodereview.appspot.com/18119011 git-svn-id: http://skia.googlecode.com/svn/trunk@10003 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'samplecode/SamplePdfFileViewer.cpp')
0 files changed, 0 insertions, 0 deletions