OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "remoting/base/decoder_row_based.h" | 5 #include "remoting/base/decoder_row_based.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "remoting/base/decompressor.h" | 8 #include "remoting/base/decompressor.h" |
9 #include "remoting/base/decompressor_zlib.h" | 9 #include "remoting/base/decompressor_zlib.h" |
10 #include "remoting/base/decompressor_verbatim.h" | 10 #include "remoting/base/decompressor_verbatim.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 } | 23 } |
24 | 24 |
25 DecoderRowBased* DecoderRowBased::CreateVerbatimDecoder() { | 25 DecoderRowBased* DecoderRowBased::CreateVerbatimDecoder() { |
26 return new DecoderRowBased(new DecompressorVerbatim(), | 26 return new DecoderRowBased(new DecompressorVerbatim(), |
27 VideoPacketFormat::ENCODING_VERBATIM); | 27 VideoPacketFormat::ENCODING_VERBATIM); |
28 } | 28 } |
29 | 29 |
30 DecoderRowBased::DecoderRowBased(Decompressor* decompressor, | 30 DecoderRowBased::DecoderRowBased(Decompressor* decompressor, |
31 VideoPacketFormat::Encoding encoding) | 31 VideoPacketFormat::Encoding encoding) |
32 : state_(kUninitialized), | 32 : state_(kUninitialized), |
| 33 clip_(SkIRect::MakeEmpty()), |
33 decompressor_(decompressor), | 34 decompressor_(decompressor), |
34 encoding_(encoding), | 35 encoding_(encoding), |
35 row_pos_(0), | 36 row_pos_(0), |
36 row_y_(0) { | 37 row_y_(0) { |
37 } | 38 } |
38 | 39 |
39 DecoderRowBased::~DecoderRowBased() { | 40 DecoderRowBased::~DecoderRowBased() { |
40 } | 41 } |
41 | 42 |
42 void DecoderRowBased::Reset() { | 43 void DecoderRowBased::Reset() { |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 void DecoderRowBased::GetUpdatedRects(RectVector* rects) { | 189 void DecoderRowBased::GetUpdatedRects(RectVector* rects) { |
189 rects->swap(updated_rects_); | 190 rects->swap(updated_rects_); |
190 updated_rects_.clear(); | 191 updated_rects_.clear(); |
191 } | 192 } |
192 | 193 |
193 VideoPacketFormat::Encoding DecoderRowBased::Encoding() { | 194 VideoPacketFormat::Encoding DecoderRowBased::Encoding() { |
194 return encoding_; | 195 return encoding_; |
195 } | 196 } |
196 | 197 |
197 } // namespace remoting | 198 } // namespace remoting |
OLD | NEW |