OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "SkBitmapCache.h" | 8 #include "SkBitmapCache.h" |
9 #include "SkBitmapProcState.h" | 9 #include "SkBitmapProcState.h" |
10 #include "SkColorPriv.h" | 10 #include "SkColorPriv.h" |
11 #include "SkFilterProc.h" | 11 #include "SkFilterProc.h" |
12 #include "SkPaint.h" | 12 #include "SkPaint.h" |
13 #include "SkShader.h" // for tilemodes | 13 #include "SkShader.h" // for tilemodes |
14 #include "SkUtilsArm.h" | 14 #include "SkUtilsArm.h" |
15 #include "SkBitmapScaler.h" | 15 #include "SkBitmapScaler.h" |
16 #include "SkMipMap.h" | 16 #include "SkMipMap.h" |
17 #include "SkPixelRef.h" | 17 #include "SkPixelRef.h" |
18 #include "SkImageEncoder.h" | |
19 #include "SkResourceCache.h" | 18 #include "SkResourceCache.h" |
20 | 19 |
21 #if !SK_ARM_NEON_IS_NONE | 20 #if !SK_ARM_NEON_IS_NONE |
22 // These are defined in src/opts/SkBitmapProcState_arm_neon.cpp | 21 // These are defined in src/opts/SkBitmapProcState_arm_neon.cpp |
23 extern const SkBitmapProcState::SampleProc16 gSkBitmapProcStateSample16_neon[]; | 22 extern const SkBitmapProcState::SampleProc16 gSkBitmapProcStateSample16_neon[]; |
24 extern const SkBitmapProcState::SampleProc32 gSkBitmapProcStateSample32_neon[]; | 23 extern const SkBitmapProcState::SampleProc32 gSkBitmapProcStateSample32_neon[]; |
25 extern void S16_D16_filter_DX_neon(const SkBitmapProcState&, const uint32_t*, i
nt, uint16_t*); | 24 extern void S16_D16_filter_DX_neon(const SkBitmapProcState&, const uint32_t*, i
nt, uint16_t*); |
26 extern void Clamp_S16_D16_filter_DX_shaderproc_neon(const SkBitmapProcState&, i
nt, int, uint16_t*, int); | 25 extern void Clamp_S16_D16_filter_DX_shaderproc_neon(const SkBitmapProcState&, i
nt, int, uint16_t*, int); |
27 extern void Repeat_S16_D16_filter_DX_shaderproc_neon(const SkBitmapProcState&,
int, int, uint16_t*, int); | 26 extern void Repeat_S16_D16_filter_DX_shaderproc_neon(const SkBitmapProcState&,
int, int, uint16_t*, int); |
28 extern void SI8_opaque_D32_filter_DX_neon(const SkBitmapProcState&, const uint3
2_t*, int, SkPMColor*); | 27 extern void SI8_opaque_D32_filter_DX_neon(const SkBitmapProcState&, const uint3
2_t*, int, SkPMColor*); |
(...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1062 fx += dx; | 1061 fx += dx; |
1063 } | 1062 } |
1064 } else { | 1063 } else { |
1065 for (int i = 0; i < count; ++i) { | 1064 for (int i = 0; i < count; ++i) { |
1066 dst[i] = src[SkClampMax(SkFractionalIntToInt(fx), maxX)]; | 1065 dst[i] = src[SkClampMax(SkFractionalIntToInt(fx), maxX)]; |
1067 fx += dx; | 1066 fx += dx; |
1068 } | 1067 } |
1069 } | 1068 } |
1070 } | 1069 } |
1071 | 1070 |
OLD | NEW |