commit | bd68adfdcbd563ee2a6f1f6ae6898cf7f76d79d6 | [log] [tgz] |
---|---|---|
author | Hal Canary <halcanary@google.com> | Thu Oct 11 14:24:40 2018 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Fri Oct 12 15:28:21 2018 +0000 |
tree | fd17f930026676d664dbda7730b8e57fcea1c962 | |
parent | 6dd96080d5912ac3807f383f7a5db9235d22aff9 [diff] |
SkDynamicMemoryWStream: optimize detachAsStream() for tiny streams Empty streams: one heap alloc instead of two. Single-block streams: realloc to used portion of block. Change-Id: I3d7b3a465b28409a4bb93782ea1ddb21a97f70a1 Reviewed-on: https://skia-review.googlesource.com/c/161600 Commit-Queue: Hal Canary <halcanary@google.com> Reviewed-by: Ben Wagner <bungeman@google.com>