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/host/differ.h" | 5 #include "remoting/capturer/differ.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "remoting/host/differ_block.h" | 8 #include "remoting/capturer/differ_block.h" |
9 | 9 |
10 namespace remoting { | 10 namespace remoting { |
11 | 11 |
12 Differ::Differ(int width, int height, int bpp, int stride) { | 12 Differ::Differ(int width, int height, int bpp, int stride) { |
13 // Dimensions of screen. | 13 // Dimensions of screen. |
14 width_ = width; | 14 width_ = width; |
15 height_ = height; | 15 height_ = height; |
16 bytes_per_pixel_ = bpp; | 16 bytes_per_pixel_ = bpp; |
17 bytes_per_row_ = stride; | 17 bytes_per_row_ = stride; |
18 | 18 |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 // Increment to next block in this row. | 202 // Increment to next block in this row. |
203 diff_info++; | 203 diff_info++; |
204 } | 204 } |
205 | 205 |
206 // Go to start of next row. | 206 // Go to start of next row. |
207 diff_info_row_start += diff_info_stride; | 207 diff_info_row_start += diff_info_stride; |
208 } | 208 } |
209 } | 209 } |
210 | 210 |
211 } // namespace remoting | 211 } // namespace remoting |
OLD | NEW |