| 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 "remoting/base/decompressor.h" | 8 #include "remoting/base/decompressor.h" |
| 8 #include "remoting/base/decompressor_zlib.h" | 9 #include "remoting/base/decompressor_zlib.h" |
| 9 #include "remoting/base/decompressor_verbatim.h" | 10 #include "remoting/base/decompressor_verbatim.h" |
| 10 #include "remoting/base/util.h" | 11 #include "remoting/base/util.h" |
| 11 | 12 |
| 12 namespace remoting { | 13 namespace remoting { |
| 13 | 14 |
| 14 namespace { | 15 namespace { |
| 15 // Both input and output data are assumed to be RGBA32. | 16 // Both input and output data are assumed to be RGBA32. |
| 16 const int kBytesPerPixel = 4; | 17 const int kBytesPerPixel = 4; |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 void DecoderRowBased::GetUpdatedRects(RectVector* rects) { | 188 void DecoderRowBased::GetUpdatedRects(RectVector* rects) { |
| 188 rects->swap(updated_rects_); | 189 rects->swap(updated_rects_); |
| 189 updated_rects_.clear(); | 190 updated_rects_.clear(); |
| 190 } | 191 } |
| 191 | 192 |
| 192 VideoPacketFormat::Encoding DecoderRowBased::Encoding() { | 193 VideoPacketFormat::Encoding DecoderRowBased::Encoding() { |
| 193 return encoding_; | 194 return encoding_; |
| 194 } | 195 } |
| 195 | 196 |
| 196 } // namespace remoting | 197 } // namespace remoting |
| OLD | NEW |