Chromium Code Reviews| 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 16 matching lines...) Expand all Loading... | |
| 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 decompressor_(decompressor), | 33 decompressor_(decompressor), |
| 34 encoding_(encoding), | 34 encoding_(encoding), |
| 35 row_pos_(0), | 35 row_pos_(0), |
| 36 row_y_(0) { | 36 row_y_(0) { |
| 37 memset(&clip_, 0, sizeof(clip_)); | |
|
Wez
2011/12/20 20:08:02
This should be:
clip_(SkIRect::MakeEmpty())
James Hawkins
2011/12/20 20:48:51
Done.
| |
| 37 } | 38 } |
| 38 | 39 |
| 39 DecoderRowBased::~DecoderRowBased() { | 40 DecoderRowBased::~DecoderRowBased() { |
| 40 } | 41 } |
| 41 | 42 |
| 42 void DecoderRowBased::Reset() { | 43 void DecoderRowBased::Reset() { |
| 43 frame_ = NULL; | 44 frame_ = NULL; |
| 44 decompressor_->Reset(); | 45 decompressor_->Reset(); |
| 45 state_ = kUninitialized; | 46 state_ = kUninitialized; |
| 46 updated_rects_.clear(); | 47 updated_rects_.clear(); |
| (...skipping 141 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 |