OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/encoder_verbatim.h" | 5 #include "remoting/base/encoder_verbatim.h" |
6 | 6 |
| 7 #include "base/logging.h" |
7 #include "gfx/rect.h" | 8 #include "gfx/rect.h" |
8 #include "media/base/data_buffer.h" | 9 #include "media/base/data_buffer.h" |
9 #include "remoting/base/capture_data.h" | 10 #include "remoting/base/capture_data.h" |
10 #include "remoting/base/protocol_util.h" | 11 #include "remoting/base/protocol_util.h" |
11 #include "remoting/base/protocol/chromotocol.pb.h" | 12 #include "remoting/base/protocol/chromotocol.pb.h" |
12 | 13 |
13 namespace remoting { | 14 namespace remoting { |
14 | 15 |
15 using media::DataBuffer; | 16 using media::DataBuffer; |
16 | 17 |
(...skipping 69 matching lines...) Loading... |
86 DCHECK_LE(row_size, capture_data->data_planes().strides[i]); | 87 DCHECK_LE(row_size, capture_data->data_planes().strides[i]); |
87 memcpy(out, in, width * bytes_per_pixel); | 88 memcpy(out, in, width * bytes_per_pixel); |
88 in += capture_data->data_planes().strides[i]; | 89 in += capture_data->data_planes().strides[i]; |
89 out += row_size; | 90 out += row_size; |
90 } | 91 } |
91 } | 92 } |
92 return true; | 93 return true; |
93 } | 94 } |
94 | 95 |
95 } // namespace remoting | 96 } // namespace remoting |
OLD | NEW |