Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(549)

Side by Side Diff: src/opts/opts_check_x86.cpp

Issue 788853002: Add SSSE3 acceleration for S32_D16_filter_DX (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/opts/SkBitmapProcState_opts_SSSE3.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « src/opts/SkBitmapProcState_opts_SSSE3.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698