aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/gif
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/gif')
-rw-r--r--third_party/gif/SkGifImageReader.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/gif/SkGifImageReader.h b/third_party/gif/SkGifImageReader.h
index 0ba767ee89..d87b68f450 100644
--- a/third_party/gif/SkGifImageReader.h
+++ b/third_party/gif/SkGifImageReader.h
@@ -280,13 +280,13 @@ private:
class SkGifImageReader final : public SkFrameHolder {
public:
// This takes ownership of stream.
- SkGifImageReader(SkStream* stream)
+ SkGifImageReader(std::unique_ptr<SkStream> stream)
: m_client(nullptr)
, m_state(SkGIFType)
, m_bytesToConsume(6) // Number of bytes for GIF type, either "GIF87a" or "GIF89a".
, m_version(0)
, m_loopCount(cLoopCountNotSeen)
- , m_streamBuffer(stream)
+ , m_streamBuffer(std::move(stream))
, m_parseCompleted(false)
, m_firstFrameHasAlpha(false)
{