diff options
author | Hal Canary <halcanary@google.com> | 2017-03-14 14:35:02 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-15 19:25:45 +0000 |
commit | 0b83319b7f301145b7fc89d7096ddcea91d4a56b (patch) | |
tree | 171b46c0446b312c325be0f935c67e3ce8931396 /include | |
parent | 81538ee611c7e12273496d0b33174254e9551749 (diff) |
SkDynamicMemoryWStream::detachAsStream() returns unique_ptr
https://crrev.com/2747183002 must land first.
Change-Id: I65d1285a24d63c2c2f18662d511dea1c399511e1
Reviewed-on: https://skia-review.googlesource.com/9682
Commit-Queue: Hal Canary <halcanary@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkStream.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/core/SkStream.h b/include/core/SkStream.h index 8df59afaf3..0a53d47cf2 100644 --- a/include/core/SkStream.h +++ b/include/core/SkStream.h @@ -383,7 +383,7 @@ public: sk_sp<SkData> detachAsData(); /** Reset, returning a reader stream with the current content. */ - SkStreamAsset* detachAsStream(); + std::unique_ptr<SkStreamAsset> detachAsStream(); /** Reset the stream to its original, empty, state. */ void reset(); |