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

Side by Side Diff: include/core/SkBlitRow.h

Issue 847363002: skia: blend32_16_row for neon version (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 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 | « no previous file | src/core/SkBlitRow_D16.cpp » ('j') | src/core/SkBlitter_RGB16.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
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 #ifndef SkBlitRow_DEFINED 8 #ifndef SkBlitRow_DEFINED
9 #define SkBlitRow_DEFINED 9 #define SkBlitRow_DEFINED
10 10
(...skipping 24 matching lines...) Expand all
35 typedef void (*Proc16)(uint16_t dst[], const SkPMColor src[], int count, 35 typedef void (*Proc16)(uint16_t dst[], const SkPMColor src[], int count,
36 U8CPU alpha, int x, int y); 36 U8CPU alpha, int x, int y);
37 37
38 static Proc16 Factory16(unsigned flags); 38 static Proc16 Factory16(unsigned flags);
39 39
40 /** 40 /**
41 * Function pointer that blends a single src color onto a scaline of dst co lors. 41 * Function pointer that blends a single src color onto a scaline of dst co lors.
42 * 42 *
43 * The x,y params provide the dithering phase for the start of the scanline 43 * The x,y params provide the dithering phase for the start of the scanline
44 */ 44 */
45 typedef void (*ColorProc16)(uint16_t dst[], SkPMColor src, int count, int x, int y); 45 typedef void (*ColorProc16)(uint16_t dst[], SkPMColor src[], int count, int x, int y);
46 46
47 // Note : we ignore the kGlobalAlpha_Flag setting, but do respect kSrcPixelA lpha_Flag 47 // Note : we ignore the kGlobalAlpha_Flag setting, but do respect kSrcPixelA lpha_Flag
48 static ColorProc16 ColorFactory16(unsigned flags); 48 static ColorProc16 ColorFactory16(unsigned flags);
49 49
50 ///////////// D32 version 50 ///////////// D32 version
51 51
52 enum Flags32 { 52 enum Flags32 {
53 kGlobalAlpha_Flag32 = 1 << 0, 53 kGlobalAlpha_Flag32 = 1 << 0,
54 kSrcPixelAlpha_Flag32 = 1 << 1 54 kSrcPixelAlpha_Flag32 = 1 << 1
55 }; 55 };
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 static ColorProc16 PlatformColorFactory565(unsigned flags); 102 static ColorProc16 PlatformColorFactory565(unsigned flags);
103 103
104 private: 104 private:
105 enum { 105 enum {
106 kFlags16_Mask = 7, 106 kFlags16_Mask = 7,
107 kFlags32_Mask = 3 107 kFlags32_Mask = 3
108 }; 108 };
109 }; 109 };
110 110
111 #endif 111 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkBlitRow_D16.cpp » ('j') | src/core/SkBlitter_RGB16.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698