| 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 "SkBitmapFilter_opts_SSE2.h" | 10 #include "SkBitmapFilter_opts_SSE2.h" |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 } else if (fMatrixProc == ClampX_ClampY_nofilter_scale) { | 148 } else if (fMatrixProc == ClampX_ClampY_nofilter_scale) { |
| 149 fMatrixProc = ClampX_ClampY_nofilter_scale_SSE2; | 149 fMatrixProc = ClampX_ClampY_nofilter_scale_SSE2; |
| 150 } | 150 } |
| 151 | 151 |
| 152 if (fMatrixProc == ClampX_ClampY_filter_affine) { | 152 if (fMatrixProc == ClampX_ClampY_filter_affine) { |
| 153 fMatrixProc = ClampX_ClampY_filter_affine_SSE2; | 153 fMatrixProc = ClampX_ClampY_filter_affine_SSE2; |
| 154 } else if (fMatrixProc == ClampX_ClampY_nofilter_affine) { | 154 } else if (fMatrixProc == ClampX_ClampY_nofilter_affine) { |
| 155 fMatrixProc = ClampX_ClampY_nofilter_affine_SSE2; | 155 fMatrixProc = ClampX_ClampY_nofilter_affine_SSE2; |
| 156 } | 156 } |
| 157 if (c_hqfilter_sse) { | 157 if (c_hqfilter_sse) { |
| 158 if (fShaderProc32 == highQualityFilter) { | 158 if (fShaderProc32 == highQualityFilter32) { |
| 159 fShaderProc32 = highQualityFilter_SSE2; | 159 fShaderProc32 = highQualityFilter_SSE2; |
| 160 } | 160 } |
| 161 } | 161 } |
| 162 } | 162 } |
| 163 } | 163 } |
| 164 | 164 |
| 165 static SkBlitRow::Proc32 platform_32_procs[] = { | 165 static SkBlitRow::Proc32 platform_32_procs[] = { |
| 166 NULL, // S32_Opaque, | 166 NULL, // S32_Opaque, |
| 167 S32_Blend_BlitRow32_SSE2, // S32_Blend, | 167 S32_Blend_BlitRow32_SSE2, // S32_Blend, |
| 168 S32A_Opaque_BlitRow32_SSE2, // S32A_Opaque | 168 S32A_Opaque_BlitRow32_SSE2, // S32A_Opaque |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 | 250 |
| 251 SkBlitRow::ColorRectProc PlatformColorRectProcFactory(); // suppress warning | 251 SkBlitRow::ColorRectProc PlatformColorRectProcFactory(); // suppress warning |
| 252 | 252 |
| 253 SkBlitRow::ColorRectProc PlatformColorRectProcFactory() { | 253 SkBlitRow::ColorRectProc PlatformColorRectProcFactory() { |
| 254 if (cachedHasSSE2()) { | 254 if (cachedHasSSE2()) { |
| 255 return ColorRect32_SSE2; | 255 return ColorRect32_SSE2; |
| 256 } else { | 256 } else { |
| 257 return NULL; | 257 return NULL; |
| 258 } | 258 } |
| 259 } | 259 } |
| OLD | NEW |