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

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

Issue 513663002: Revert of Cleanup: Remove unneeded SSE2 checks and unused code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 3 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 | « media/media.gyp ('k') | skia/ext/convolver.cc » ('j') | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "third_party/skia/include/core/SkSize.h" 13 #include "third_party/skia/include/core/SkSize.h"
13 #include "third_party/skia/include/core/SkTypes.h" 14 #include "third_party/skia/include/core/SkTypes.h"
14 15
15 // We can build SSE2 optimized versions for all x86 CPUs 16 // We can build SSE2 optimized versions for all x86 CPUs
16 // except when building for the IOS emulator. 17 // except when building for the IOS emulator.
17 #if defined(ARCH_CPU_X86_FAMILY) && !defined(OS_IOS) 18 #if defined(ARCH_CPU_X86_FAMILY) && !defined(OS_IOS)
18 #define SIMD_SSE2 1 19 #define SIMD_SSE2 1
19 #define SIMD_PADDING 8 // 8 * int16 20 #define SIMD_PADDING 8 // 8 * int16
20 #endif 21 #endif
21 22
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 // Set up the |filter| instance with a gaussian kernel. |kernel_sigma| is the 226 // Set up the |filter| instance with a gaussian kernel. |kernel_sigma| is the
226 // parameter of gaussian. If |derivative| is true, the kernel will be that of 227 // parameter of gaussian. If |derivative| is true, the kernel will be that of
227 // the first derivative. Intended for use with the two routines above. 228 // the first derivative. Intended for use with the two routines above.
228 SK_API void SetUpGaussianConvolutionKernel(ConvolutionFilter1D* filter, 229 SK_API void SetUpGaussianConvolutionKernel(ConvolutionFilter1D* filter,
229 float kernel_sigma, 230 float kernel_sigma,
230 bool derivative); 231 bool derivative);
231 232
232 } // namespace skia 233 } // namespace skia
233 234
234 #endif // SKIA_EXT_CONVOLVER_H_ 235 #endif // SKIA_EXT_CONVOLVER_H_
OLDNEW
« no previous file with comments | « media/media.gyp ('k') | skia/ext/convolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698