commit | e2dd9408cd711777afaa9410427fb0d761ab004a | [log] [tgz] |
---|---|---|
author | mtklein <mtklein@chromium.org> | Wed Apr 08 14:02:31 2015 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Wed Apr 08 14:02:32 2015 -0700 |
tree | 826b146386e80c85416b72e541d38b9410dc0777 | |
parent | 16e833d5aac6570e134cf8e5356df635e01e092e [diff] |
Rearrange SkRecord with small N in mind This rearranges the record pointers and types so they can go in a single array, then preallocates some space for them and for the SkVarAlloc. picture_overhead_draw bench drops from ~1000ns to 500-600ns, with no effect on picture_overhead_nodraw. I don't see any significant effect on large picture recording times from our .skps. BUG=chromium:470553 Review URL: https://codereview.chromium.org/1061783002