OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |