OLD | NEW |
| (Empty) |
1 /* | |
2 * Copyright 2012 Google Inc. | |
3 * | |
4 * Use of this source code is governed by a BSD-style license that can be | |
5 * found in the LICENSE file. | |
6 */ | |
7 #ifndef SkBlitRow_opts_arm_DEFINED | |
8 #define SkBlitRow_opts_arm_DEFINED | |
9 | |
10 #include "SkBlitRow.h" | |
11 #include "SkUtilsArm.h" | |
12 | |
13 // Define USE_NEON_CODE to indicate that we need to build NEON routines | |
14 #define USE_NEON_CODE (!SK_ARM_NEON_IS_NONE) | |
15 | |
16 // Define USE_ARM_CODE to indicate that we need to build ARM routines | |
17 #define USE_ARM_CODE (!SK_ARM_NEON_IS_ALWAYS) | |
18 | |
19 #if USE_NEON_CODE | |
20 // These are defined in SkBlitRow_opts_arm_neon.cpp | |
21 extern const SkBlitRow::Proc sk_blitrow_platform_565_procs_arm_neon[]; | |
22 extern const SkBlitRow::Proc32 sk_blitrow_platform_32_procs_arm_neon[]; | |
23 | |
24 extern void Color32_arm_neon(SkPMColor* dst, const SkPMColor* src, int count, | |
25 SkPMColor color); | |
26 #endif | |
27 | |
28 #if USE_ARM_CODE | |
29 // These are defined in SkBlitRow_opts_arm.cpp | |
30 extern const SkBlitRow::Proc sk_blitrow_platform_565_procs_arm[]; | |
31 extern const SkBlitRow::Proc32 sk_blitrow_platform_32_procs_arm[]; | |
32 #endif | |
33 | |
34 // Defined in SkBlitRow_opts_arm.cpp, used in all cases. | |
35 extern void S32A_Blend_BlitRow32_arm(SkPMColor* SK_RESTRICT dst, | |
36 const SkPMColor* SK_RESTRICT src, | |
37 int count, U8CPU alpha); | |
38 | |
39 #endif | |
OLD | NEW |