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 <algorithm> | 5 #include <algorithm> |
6 | 6 |
| 7 #include "build/build_config.h" |
7 #include "skia/ext/convolver.h" | 8 #include "skia/ext/convolver.h" |
8 #include "skia/ext/convolver_SSE2.h" | 9 #include "skia/ext/convolver_SSE2.h" |
9 #include "third_party/skia/include/core/SkTypes.h" | 10 #include "third_party/skia/include/core/SkTypes.h" |
10 | 11 |
11 #include <emmintrin.h> // ARCH_CPU_X86_FAMILY was defined in build/config.h | 12 #include <emmintrin.h> // ARCH_CPU_X86_FAMILY was defined in build/config.h |
12 | 13 |
13 namespace skia { | 14 namespace skia { |
14 | 15 |
15 // Convolves horizontally along a single row. The row data is given in | 16 // Convolves horizontally along a single row. The row data is given in |
16 // |src_data| and continues for the num_values() of the filter. | 17 // |src_data| and continues for the num_values() of the filter. |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 } else { | 449 } else { |
449 ConvolveVertically_SSE2<false>(filter_values, | 450 ConvolveVertically_SSE2<false>(filter_values, |
450 filter_length, | 451 filter_length, |
451 source_data_rows, | 452 source_data_rows, |
452 pixel_width, | 453 pixel_width, |
453 out_row); | 454 out_row); |
454 } | 455 } |
455 } | 456 } |
456 | 457 |
457 } // namespace skia | 458 } // namespace skia |
OLD | NEW |