Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(581)

Side by Side Diff: src/opts/SkColor_opts_neon.h

Issue 1212393002: add/fix copyrights (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/opts/SkBlitRow_opts_SSE4.cpp ('k') | src/opts/SkXfermode_opts_arm.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 */
7
1 #ifndef SkColor_opts_neon_DEFINED 8 #ifndef SkColor_opts_neon_DEFINED
2 #define SkColor_opts_neon_DEFINED 9 #define SkColor_opts_neon_DEFINED
3 10
4 #include "SkTypes.h" 11 #include "SkTypes.h"
5 #include "SkColorPriv.h" 12 #include "SkColorPriv.h"
6 13
7 #include <arm_neon.h> 14 #include <arm_neon.h>
8 15
9 #define NEON_A (SK_A32_SHIFT / 8) 16 #define NEON_A (SK_A32_SHIFT / 8)
10 #define NEON_R (SK_R32_SHIFT / 8) 17 #define NEON_R (SK_R32_SHIFT / 8)
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 } 112 }
106 113
107 static inline SkPMColor SkFourByteInterp_neon(SkPMColor src, SkPMColor dst, 114 static inline SkPMColor SkFourByteInterp_neon(SkPMColor src, SkPMColor dst,
108 U8CPU srcWeight) { 115 U8CPU srcWeight) {
109 SkASSERT(srcWeight <= 255); 116 SkASSERT(srcWeight <= 255);
110 unsigned scale = SkAlpha255To256(srcWeight); 117 unsigned scale = SkAlpha255To256(srcWeight);
111 return SkFourByteInterp256_neon(src, dst, scale); 118 return SkFourByteInterp256_neon(src, dst, scale);
112 } 119 }
113 120
114 #endif /* #ifndef SkColor_opts_neon_DEFINED */ 121 #endif /* #ifndef SkColor_opts_neon_DEFINED */
OLDNEW
« no previous file with comments | « src/opts/SkBlitRow_opts_SSE4.cpp ('k') | src/opts/SkXfermode_opts_arm.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698