LEFT | RIGHT |
(no file at all) | |
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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 66 |
67 /** Blend a single color onto a row of S32 pixels, writing the result | 67 /** Blend a single color onto a row of S32 pixels, writing the result |
68 into a row of D32 pixels. src and dst may be the same memory, but | 68 into a row of D32 pixels. src and dst may be the same memory, but |
69 if they are not, they may not overlap. | 69 if they are not, they may not overlap. |
70 */ | 70 */ |
71 static void Color32(SkPMColor dst[], const SkPMColor src[], | 71 static void Color32(SkPMColor dst[], const SkPMColor src[], |
72 int count, SkPMColor color); | 72 int count, SkPMColor color); |
73 | 73 |
74 static ColorProc ColorProcFactory(); | 74 static ColorProc ColorProcFactory(); |
75 | 75 |
| 76 /** Control if platform optimized procedures will be returned by |
| 77 Factory32 and ColorProcFactory. The default setting is true. |
| 78 This is only present for testing, and may be ignored in a |
| 79 production environment. |
| 80 */ |
| 81 static void UsePlatformOptsForFactory(bool); |
| 82 |
76 /** These static functions are called by the Factory and Factory32 | 83 /** These static functions are called by the Factory and Factory32 |
77 functions, and should return either NULL, or a | 84 functions, and should return either NULL, or a |
78 platform-specific function-ptr to be used in place of the | 85 platform-specific function-ptr to be used in place of the |
79 system default. | 86 system default. |
80 */ | 87 */ |
81 | 88 |
82 static Proc32 PlatformProcs32(unsigned flags); | 89 static Proc32 PlatformProcs32(unsigned flags); |
83 static Proc PlatformProcs565(unsigned flags); | 90 static Proc PlatformProcs565(unsigned flags); |
84 static Proc PlatformProcs4444(unsigned flags); | 91 static Proc PlatformProcs4444(unsigned flags); |
85 static ColorProc PlatformColorProc(); | 92 static ColorProc PlatformColorProc(); |
86 | 93 |
87 private: | 94 private: |
88 enum { | 95 enum { |
89 kFlags16_Mask = 7, | 96 kFlags16_Mask = 7, |
90 kFlags32_Mask = 3 | 97 kFlags32_Mask = 3 |
91 }; | 98 }; |
92 }; | 99 }; |
93 | 100 |
94 #endif | 101 #endif |
LEFT | RIGHT |