commit | ff007e8ff358d9253de22291ebfd5fe7980512ed | [log] [tgz] |
---|---|---|
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | Thu Jan 09 16:45:45 2014 +0000 |
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | Thu Jan 09 16:45:45 2014 +0000 |
tree | db842fe62afea5f9b24b77d78d5facfd4eb288ae | |
parent | 96ab95f45800eda0c5a101cd65046b00a22bcc81 [diff] |
Allocate SkPictureFlat::fScratch lazily. Cuts out half to two thirds of allocations of this object. Since we're already lazily allocating fWriteBuffer, we don't have to add any other code complexity. BUG=http://skbug.com/1980 R=mtklein@google.com, tomhudson@google.com Author: tomhudson@chromium.org Review URL: https://codereview.chromium.org/131483005 git-svn-id: http://skia.googlecode.com/svn/trunk@12992 2bbb7eff-a529-9590-31e7-b0007b416f81