Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: skia/ext/convolver.h

Issue 10823186: Temporarily disable buggy SSE2 code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // FIXME: Known buggy, so disabling for M22.
19 // #define SIMD_SSE2 1
19 #endif 20 #endif
20 #endif 21 #endif
21 22
22 // avoid confusion with Mac OS X's math library (Carbon) 23 // avoid confusion with Mac OS X's math library (Carbon)
23 #if defined(__APPLE__) 24 #if defined(__APPLE__)
24 #undef FloatToFixed 25 #undef FloatToFixed
25 #undef FixedToFloat 26 #undef FixedToFloat
26 #endif 27 #endif
27 28
28 namespace skia { 29 namespace skia {
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 int source_byte_row_stride, 164 int source_byte_row_stride,
164 bool source_has_alpha, 165 bool source_has_alpha,
165 const ConvolutionFilter1D& xfilter, 166 const ConvolutionFilter1D& xfilter,
166 const ConvolutionFilter1D& yfilter, 167 const ConvolutionFilter1D& yfilter,
167 int output_byte_row_stride, 168 int output_byte_row_stride,
168 unsigned char* output, 169 unsigned char* output,
169 bool use_sse2); 170 bool use_sse2);
170 } // namespace skia 171 } // namespace skia
171 172
172 #endif // SKIA_EXT_CONVOLVER_H_ 173 #endif // SKIA_EXT_CONVOLVER_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698