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 "SkBitmapFilter_opts_SSE2.h" | 8 #include "SkBitmapFilter_opts_SSE2.h" |
9 #include "SkBitmapProcState_opts_SSE2.h" | 9 #include "SkBitmapProcState_opts_SSE2.h" |
10 #include "SkBitmapProcState_opts_SSSE3.h" | 10 #include "SkBitmapProcState_opts_SSSE3.h" |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 fSampleProc32 = S32_alpha_D32_filter_DX_SSE2; | 169 fSampleProc32 = S32_alpha_D32_filter_DX_SSE2; |
170 } | 170 } |
171 } else if (fSampleProc32 == S32_alpha_D32_filter_DXDY) { | 171 } else if (fSampleProc32 == S32_alpha_D32_filter_DXDY) { |
172 if (ssse3) { | 172 if (ssse3) { |
173 fSampleProc32 = S32_alpha_D32_filter_DXDY_SSSE3; | 173 fSampleProc32 = S32_alpha_D32_filter_DXDY_SSSE3; |
174 } | 174 } |
175 } | 175 } |
176 | 176 |
177 /* Check fSampleProc16 */ | 177 /* Check fSampleProc16 */ |
178 if (fSampleProc16 == S32_D16_filter_DX) { | 178 if (fSampleProc16 == S32_D16_filter_DX) { |
179 fSampleProc16 = S32_D16_filter_DX_SSE2; | 179 if (ssse3) { |
| 180 fSampleProc16 = S32_D16_filter_DX_SSSE3; |
| 181 } else { |
| 182 fSampleProc16 = S32_D16_filter_DX_SSE2; |
| 183 } |
180 } else if (ssse3 && fSampleProc16 == S32_D16_filter_DXDY) { | 184 } else if (ssse3 && fSampleProc16 == S32_D16_filter_DXDY) { |
181 fSampleProc16 = S32_D16_filter_DXDY_SSSE3; | 185 fSampleProc16 = S32_D16_filter_DXDY_SSSE3; |
182 } | 186 } |
183 | 187 |
184 /* Check fMatrixProc */ | 188 /* Check fMatrixProc */ |
185 if (fMatrixProc == ClampX_ClampY_filter_scale) { | 189 if (fMatrixProc == ClampX_ClampY_filter_scale) { |
186 fMatrixProc = ClampX_ClampY_filter_scale_SSE2; | 190 fMatrixProc = ClampX_ClampY_filter_scale_SSE2; |
187 } else if (fMatrixProc == ClampX_ClampY_nofilter_scale) { | 191 } else if (fMatrixProc == ClampX_ClampY_nofilter_scale) { |
188 fMatrixProc = ClampX_ClampY_nofilter_scale_SSE2; | 192 fMatrixProc = ClampX_ClampY_nofilter_scale_SSE2; |
189 } else if (fMatrixProc == ClampX_ClampY_filter_affine) { | 193 } else if (fMatrixProc == ClampX_ClampY_filter_affine) { |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 } else { | 406 } else { |
403 return SkPlatformXfermodeFactory_impl(rec, mode); | 407 return SkPlatformXfermodeFactory_impl(rec, mode); |
404 } | 408 } |
405 } | 409 } |
406 | 410 |
407 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode); | 411 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode); |
408 | 412 |
409 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) { | 413 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) { |
410 return NULL; | 414 return NULL; |
411 } | 415 } |
OLD | NEW |