aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/PDFDeflateWStreamTest.cpp
diff options
context:
space:
mode:
authorGravatar Hal Canary <halcanary@google.com>2017-03-14 14:35:02 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-03-15 19:25:45 +0000
commit0b83319b7f301145b7fc89d7096ddcea91d4a56b (patch)
tree171b46c0446b312c325be0f935c67e3ce8931396 /tests/PDFDeflateWStreamTest.cpp
parent81538ee611c7e12273496d0b33174254e9551749 (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 'tests/PDFDeflateWStreamTest.cpp')
-rw-r--r--tests/PDFDeflateWStreamTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/PDFDeflateWStreamTest.cpp b/tests/PDFDeflateWStreamTest.cpp
index dcb7547495..3d734c81a1 100644
--- a/tests/PDFDeflateWStreamTest.cpp
+++ b/tests/PDFDeflateWStreamTest.cpp
@@ -28,7 +28,7 @@ void skia_free_func(void*, void* address) { sk_free(address); }
* Use the un-deflate compression algorithm to decompress the data in src,
* returning the result. Returns nullptr if an error occurs.
*/
-SkStreamAsset* stream_inflate(skiatest::Reporter* reporter, SkStream* src) {
+std::unique_ptr<SkStreamAsset> stream_inflate(skiatest::Reporter* reporter, SkStream* src) {
SkDynamicMemoryWStream decompressedDynamicMemoryWStream;
SkWStream* dst = &decompressedDynamicMemoryWStream;