OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/utility/cloud_print/pwg_encoder.h" | 5 #include "chrome/utility/cloud_print/pwg_encoder.h" |
6 | 6 |
| 7 #include <limits.h> |
7 #include <string.h> | 8 #include <string.h> |
8 | 9 |
9 #include <algorithm> | 10 #include <algorithm> |
10 | 11 |
11 #include "base/big_endian.h" | 12 #include "base/big_endian.h" |
12 #include "base/logging.h" | 13 #include "base/logging.h" |
13 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
14 #include "chrome/utility/cloud_print/bitmap_image.h" | 15 #include "chrome/utility/cloud_print/bitmap_image.h" |
15 | 16 |
16 namespace cloud_print { | 17 namespace cloud_print { |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 // We reverse the iterators. | 258 // We reverse the iterators. |
258 EncodeRow<InputStruct>(std::reverse_iterator<const uint32_t*>(row_end), | 259 EncodeRow<InputStruct>(std::reverse_iterator<const uint32_t*>(row_end), |
259 std::reverse_iterator<const uint32_t*>(pos), | 260 std::reverse_iterator<const uint32_t*>(pos), |
260 monochrome, output); | 261 monochrome, output); |
261 } | 262 } |
262 } | 263 } |
263 return true; | 264 return true; |
264 } | 265 } |
265 | 266 |
266 } // namespace cloud_print | 267 } // namespace cloud_print |
OLD | NEW |