OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2009 The Android Open Source Project | 2 * Copyright 2009 The Android Open Source Project |
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 #include "SkBitmapProcState_opts_SSE2.h" | 8 #include "SkBitmapProcState_opts_SSE2.h" |
9 #include "SkBitmapProcState_opts_SSSE3.h" | 9 #include "SkBitmapProcState_opts_SSSE3.h" |
10 #include "SkBlitMask.h" | 10 #include "SkBlitMask.h" |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 } | 145 } |
146 } | 146 } |
147 | 147 |
148 static SkBlitRow::Proc32 platform_32_procs[] = { | 148 static SkBlitRow::Proc32 platform_32_procs[] = { |
149 NULL, // S32_Opaque, | 149 NULL, // S32_Opaque, |
150 S32_Blend_BlitRow32_SSE2, // S32_Blend, | 150 S32_Blend_BlitRow32_SSE2, // S32_Blend, |
151 S32A_Opaque_BlitRow32_SSE2, // S32A_Opaque | 151 S32A_Opaque_BlitRow32_SSE2, // S32A_Opaque |
152 S32A_Blend_BlitRow32_SSE2, // S32A_Blend, | 152 S32A_Blend_BlitRow32_SSE2, // S32A_Blend, |
153 }; | 153 }; |
154 | 154 |
155 SkBlitRow::Proc SkBlitRow::PlatformProcs4444(unsigned flags) { | |
156 return NULL; | |
157 } | |
158 | |
159 SkBlitRow::Proc SkBlitRow::PlatformProcs565(unsigned flags) { | 155 SkBlitRow::Proc SkBlitRow::PlatformProcs565(unsigned flags) { |
160 return NULL; | 156 return NULL; |
161 } | 157 } |
162 | 158 |
163 SkBlitRow::ColorProc SkBlitRow::PlatformColorProc() { | 159 SkBlitRow::ColorProc SkBlitRow::PlatformColorProc() { |
164 if (cachedHasSSE2()) { | 160 if (cachedHasSSE2()) { |
165 return Color32_SSE2; | 161 return Color32_SSE2; |
166 } else { | 162 } else { |
167 return NULL; | 163 return NULL; |
168 } | 164 } |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 | 233 |
238 SkBlitRow::ColorRectProc PlatformColorRectProcFactory(); // suppress warning | 234 SkBlitRow::ColorRectProc PlatformColorRectProcFactory(); // suppress warning |
239 | 235 |
240 SkBlitRow::ColorRectProc PlatformColorRectProcFactory() { | 236 SkBlitRow::ColorRectProc PlatformColorRectProcFactory() { |
241 if (cachedHasSSE2()) { | 237 if (cachedHasSSE2()) { |
242 return ColorRect32_SSE2; | 238 return ColorRect32_SSE2; |
243 } else { | 239 } else { |
244 return NULL; | 240 return NULL; |
245 } | 241 } |
246 } | 242 } |
OLD | NEW |