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

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

Issue 1540963004: Switch to standard integer types in skia/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missed some Created 4 years, 12 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
« no previous file with comments | « skia/ext/bitmap_platform_device_win.cc ('k') | skia/ext/convolver_SSE2.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 <stdint.h>
Nico 2015/12/22 17:13:28 i think this one isn't needed either, but int16_t
9
8 #include <cmath> 10 #include <cmath>
9 #include <vector> 11 #include <vector>
10 12
11 #include "base/basictypes.h" 13 #include "build/build_config.h"
12 #include "third_party/skia/include/core/SkSize.h" 14 #include "third_party/skia/include/core/SkSize.h"
13 #include "third_party/skia/include/core/SkTypes.h" 15 #include "third_party/skia/include/core/SkTypes.h"
14 16
15 // We can build SSE2 optimized versions for all x86 CPUs 17 // We can build SSE2 optimized versions for all x86 CPUs
16 // except when building for the IOS emulator. 18 // except when building for the IOS emulator.
17 #if defined(ARCH_CPU_X86_FAMILY) && !defined(OS_IOS) 19 #if defined(ARCH_CPU_X86_FAMILY) && !defined(OS_IOS)
18 #define SIMD_SSE2 1 20 #define SIMD_SSE2 1
19 #define SIMD_PADDING 8 // 8 * int16 21 #define SIMD_PADDING 8 // 8 * int16_t
20 #endif 22 #endif
21 23
22 #if defined (ARCH_CPU_MIPS_FAMILY) && \ 24 #if defined (ARCH_CPU_MIPS_FAMILY) && \
23 defined(__mips_dsp) && (__mips_dsp_rev >= 2) 25 defined(__mips_dsp) && (__mips_dsp_rev >= 2)
24 #define SIMD_MIPS_DSPR2 1 26 #define SIMD_MIPS_DSPR2 1
25 #endif 27 #endif
26 // avoid confusion with Mac OS X's math library (Carbon) 28 // avoid confusion with Mac OS X's math library (Carbon)
27 #if defined(__APPLE__) 29 #if defined(__APPLE__)
28 #undef FloatToFixed 30 #undef FloatToFixed
29 #undef FixedToFloat 31 #undef FixedToFloat
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 // Set up the |filter| instance with a gaussian kernel. |kernel_sigma| is the 228 // Set up the |filter| instance with a gaussian kernel. |kernel_sigma| is the
227 // parameter of gaussian. If |derivative| is true, the kernel will be that of 229 // parameter of gaussian. If |derivative| is true, the kernel will be that of
228 // the first derivative. Intended for use with the two routines above. 230 // the first derivative. Intended for use with the two routines above.
229 SK_API void SetUpGaussianConvolutionKernel(ConvolutionFilter1D* filter, 231 SK_API void SetUpGaussianConvolutionKernel(ConvolutionFilter1D* filter,
230 float kernel_sigma, 232 float kernel_sigma,
231 bool derivative); 233 bool derivative);
232 234
233 } // namespace skia 235 } // namespace skia
234 236
235 #endif // SKIA_EXT_CONVOLVER_H_ 237 #endif // SKIA_EXT_CONVOLVER_H_
OLDNEW
« no previous file with comments | « skia/ext/bitmap_platform_device_win.cc ('k') | skia/ext/convolver_SSE2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698