commit | 6fee59b514c5f7b7ff34d63b294759dd0c1d4858 | [log] [tgz] |
---|---|---|
author | Hal Canary <halcanary@google.com> | Tue May 23 11:47:05 2017 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Wed May 24 19:49:35 2017 +0000 |
tree | 6bcfede9aabf632d1f3f7fc0cb1f414240645c96 | |
parent | 14a6430b7bcf92bcabf4aef18805969d1335aab1 [diff] |
SkStream: DynamicMemoryWStream gets writeToAndReset This is similar to copyToAndReset(). Also use this in SkPDF, for minor memory savings: Single-threaded DM's peak RSS drops from 239MB to 228MB. Change-Id: I352a980e6dd54eb05d74cd057bd50e02312753b0 Reviewed-on: https://skia-review.googlesource.com/17714 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Hal Canary <halcanary@google.com>