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 /dm/DM.cpp | |
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 'dm/DM.cpp')
-rw-r--r-- | dm/DM.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1089,7 +1089,7 @@ struct Task { } // We're likely switching threads here, so we must capture by value, [=] or [foo,bar]. - SkStreamAsset* data = stream.detachAsStream(); + SkStreamAsset* data = stream.detachAsStream().release(); gDefinitelyThreadSafeWork.add([task,name,bitmap,data]{ std::unique_ptr<SkStreamAsset> ownedData(data); |