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 #ifndef SKIA_EXT_CONVOLVER_H_ | 5 #ifndef SKIA_EXT_CONVOLVER_H_ |
6 #define SKIA_EXT_CONVOLVER_H_ | 6 #define SKIA_EXT_CONVOLVER_H_ |
7 | 7 |
8 #include <cmath> | 8 #include <cmath> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/cpu.h" | 12 #include "base/cpu.h" |
13 #include "third_party/skia/include/core/SkTypes.h" | 13 #include "third_party/skia/include/core/SkTypes.h" |
14 | 14 |
15 #if defined(ARCH_CPU_X86_FAMILY) | 15 #if defined(ARCH_CPU_X86_FAMILY) |
16 #if defined(__x86_64__) || defined(_M_X64) || defined(__SSE2__) || _M_IX86_FP==2 | 16 #if defined(__x86_64__) || defined(_M_X64) || defined(__SSE2__) || _M_IX86_FP==2 |
17 // This is where we had compiler support for SSE2 instructions. | 17 // This is where we had compiler support for SSE2 instructions. |
18 #define SIMD_SSE2 1 | 18 //#define SIMD_SSE2 1 |
aarya
2012/08/06 19:00:05
nit: Space after // and probably add a one-line co
Tom Hudson
2012/08/06 19:04:23
Done.
| |
19 #endif | 19 #endif |
20 #endif | 20 #endif |
21 | 21 |
22 // avoid confusion with Mac OS X's math library (Carbon) | 22 // avoid confusion with Mac OS X's math library (Carbon) |
23 #if defined(__APPLE__) | 23 #if defined(__APPLE__) |
24 #undef FloatToFixed | 24 #undef FloatToFixed |
25 #undef FixedToFloat | 25 #undef FixedToFloat |
26 #endif | 26 #endif |
27 | 27 |
28 namespace skia { | 28 namespace skia { |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
163 int source_byte_row_stride, | 163 int source_byte_row_stride, |
164 bool source_has_alpha, | 164 bool source_has_alpha, |
165 const ConvolutionFilter1D& xfilter, | 165 const ConvolutionFilter1D& xfilter, |
166 const ConvolutionFilter1D& yfilter, | 166 const ConvolutionFilter1D& yfilter, |
167 int output_byte_row_stride, | 167 int output_byte_row_stride, |
168 unsigned char* output, | 168 unsigned char* output, |
169 bool use_sse2); | 169 bool use_sse2); |
170 } // namespace skia | 170 } // namespace skia |
171 | 171 |
172 #endif // SKIA_EXT_CONVOLVER_H_ | 172 #endif // SKIA_EXT_CONVOLVER_H_ |
OLD | NEW |