OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 The Android Open Source Project | 2 * Copyright 2012 The Android Open Source Project |
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 "SkBlitRow_opts_arm_neon.h" | 8 #include "SkBlitRow_opts_arm_neon.h" |
9 | 9 |
10 #include "SkBlitMask.h" | 10 #include "SkBlitMask.h" |
11 #include "SkBlitRow.h" | 11 #include "SkBlitRow.h" |
12 #include "SkColorPriv.h" | 12 #include "SkColorPriv.h" |
13 #include "SkDither.h" | 13 #include "SkDither.h" |
14 #include "SkMathPriv.h" | 14 #include "SkMathPriv.h" |
15 #include "SkUtils.h" | 15 #include "SkUtils.h" |
16 | 16 |
17 #include "SkCachePreload_arm.h" | |
18 #include "SkColor_opts_neon.h" | 17 #include "SkColor_opts_neon.h" |
19 #include <arm_neon.h> | 18 #include <arm_neon.h> |
20 | 19 |
21 void S32_D565_Opaque_neon(uint16_t* SK_RESTRICT dst, | 20 void S32_D565_Opaque_neon(uint16_t* SK_RESTRICT dst, |
22 const SkPMColor* SK_RESTRICT src, int count, | 21 const SkPMColor* SK_RESTRICT src, int count, |
23 U8CPU alpha, int /*x*/, int /*y*/) { | 22 U8CPU alpha, int /*x*/, int /*y*/) { |
24 SkASSERT(255 == alpha); | 23 SkASSERT(255 == alpha); |
25 | 24 |
26 while (count >= 8) { | 25 while (count >= 8) { |
27 uint8x8x4_t vsrc; | 26 uint8x8x4_t vsrc; |
(...skipping 1470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1498 * case where we do not inspect the src alpha. | 1497 * case where we do not inspect the src alpha. |
1499 */ | 1498 */ |
1500 #if SK_A32_SHIFT == 24 | 1499 #if SK_A32_SHIFT == 24 |
1501 // This proc assumes the alpha value occupies bits 24-32 of each SkPMColor | 1500 // This proc assumes the alpha value occupies bits 24-32 of each SkPMColor |
1502 S32A_Opaque_BlitRow32_neon_src_alpha, // S32A_Opaque, | 1501 S32A_Opaque_BlitRow32_neon_src_alpha, // S32A_Opaque, |
1503 #else | 1502 #else |
1504 S32A_Opaque_BlitRow32_neon, // S32A_Opaque, | 1503 S32A_Opaque_BlitRow32_neon, // S32A_Opaque, |
1505 #endif | 1504 #endif |
1506 S32A_Blend_BlitRow32_neon // S32A_Blend | 1505 S32A_Blend_BlitRow32_neon // S32A_Blend |
1507 }; | 1506 }; |
OLD | NEW |