| OLD | NEW |
| 1 /* |
| 2 * Copyright 2015 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 */ |
| 1 | 7 |
| 2 #include "SkBlitMask.h" | 8 #include "SkBlitMask.h" |
| 3 #include "SkColor_opts_neon.h" | 9 #include "SkColor_opts_neon.h" |
| 4 | 10 |
| 5 static void D32_A8_Black_neon(void* SK_RESTRICT dst, size_t dstRB, | 11 static void D32_A8_Black_neon(void* SK_RESTRICT dst, size_t dstRB, |
| 6 const void* SK_RESTRICT maskPtr, size_t maskRB, | 12 const void* SK_RESTRICT maskPtr, size_t maskRB, |
| 7 SkColor, int width, int height) { | 13 SkColor, int width, int height) { |
| 8 SkPMColor* SK_RESTRICT device = (SkPMColor*)dst; | 14 SkPMColor* SK_RESTRICT device = (SkPMColor*)dst; |
| 9 const uint8_t* SK_RESTRICT mask = (const uint8_t*)maskPtr; | 15 const uint8_t* SK_RESTRICT mask = (const uint8_t*)maskPtr; |
| 10 | 16 |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 | 251 |
| 246 dst += 8; | 252 dst += 8; |
| 247 src += 8; | 253 src += 8; |
| 248 width -= 8; | 254 width -= 8; |
| 249 } | 255 } |
| 250 | 256 |
| 251 for (int i = 0; i < width; i++) { | 257 for (int i = 0; i < width; i++) { |
| 252 dst[i] = SkBlendLCD16(colA, colR, colG, colB, dst[i], src[i]); | 258 dst[i] = SkBlendLCD16(colA, colR, colG, colB, dst[i], src[i]); |
| 253 } | 259 } |
| 254 } | 260 } |
| OLD | NEW |