OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #include "SkBlitRow.h" | 10 #include "SkBlitRow.h" |
11 #include "SkCoreBlitters.h" | 11 #include "SkCoreBlitters.h" |
12 #include "SkColorPriv.h" | 12 #include "SkColorPriv.h" |
13 #include "SkDither.h" | 13 #include "SkDither.h" |
14 #include "SkShader.h" | 14 #include "SkShader.h" |
15 #include "SkUtils.h" | 15 #include "SkUtils.h" |
| 16 #include "SkUtilsArm.h" |
16 #include "SkXfermode.h" | 17 #include "SkXfermode.h" |
17 | 18 |
18 #if SK_ARM_NEON_IS_ALWAYS && defined(SK_CPU_LENDIAN) | 19 #if SK_ARM_NEON_IS_ALWAYS && defined(SK_CPU_LENDIAN) |
19 #include <arm_neon.h> | 20 #include <arm_neon.h> |
20 #else | 21 #else |
21 // if we don't have neon, then our black blitter is worth the extra code | 22 // if we don't have neon, then our black blitter is worth the extra code |
22 #define USE_BLACK_BLITTER | 23 #define USE_BLACK_BLITTER |
23 #endif | 24 #endif |
24 | 25 |
25 void sk_dither_memset16(uint16_t dst[], uint16_t value, uint16_t other, | 26 void sk_dither_memset16(uint16_t dst[], uint16_t value, uint16_t other, |
(...skipping 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1040 #endif | 1041 #endif |
1041 } else if (0xFF == SkColorGetA(color)) { | 1042 } else if (0xFF == SkColorGetA(color)) { |
1042 blitter = allocator->createT<SkRGB16_Opaque_Blitter>(device, paint); | 1043 blitter = allocator->createT<SkRGB16_Opaque_Blitter>(device, paint); |
1043 } else { | 1044 } else { |
1044 blitter = allocator->createT<SkRGB16_Blitter>(device, paint); | 1045 blitter = allocator->createT<SkRGB16_Blitter>(device, paint); |
1045 } | 1046 } |
1046 } | 1047 } |
1047 | 1048 |
1048 return blitter; | 1049 return blitter; |
1049 } | 1050 } |
OLD | NEW |