Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: third_party/WebKit/Source/platform/image-decoders/SegmentStream.cpp

Issue 2775063002: Move WEBPImageDecoder to SkCodec
Patch Set: Pull in changes from the gif decoder Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "platform/image-decoders/SegmentStream.h" 5 #include "platform/image-decoders/SegmentStream.h"
6 #include <algorithm>
6 #include <utility> 7 #include <utility>
7 #include "platform/image-decoders/SegmentReader.h" 8 #include "platform/image-decoders/SegmentReader.h"
8 9
9 namespace blink { 10 namespace blink {
10 11
11 SegmentStream::SegmentStream() = default; 12 SegmentStream::SegmentStream() = default;
12 13
13 SegmentStream::SegmentStream(SegmentStream&& rhs) 14 SegmentStream::SegmentStream(SegmentStream&& rhs)
14 : reader_(std::move(rhs.reader_)), position_(rhs.position_) {} 15 : reader_(std::move(rhs.reader_)), position_(rhs.position_) {}
15 16
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 } 94 }
94 95
95 size_t SegmentStream::getLength() const { 96 size_t SegmentStream::getLength() const {
96 if (reader_) 97 if (reader_)
97 return reader_->size(); 98 return reader_->size();
98 99
99 return 0; 100 return 0;
100 } 101 }
101 102
102 } // namespace blink 103 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698