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

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

Issue 311053009: Revert of Add SSE4 optimization of S32A_Opaque_Blitrow (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 6 months 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/SkBlitRow_opts_SSE4_x64_asm.S ('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"
11 #include "SkBlitMask.h" 11 #include "SkBlitMask.h"
12 #include "SkBlitRect_opts_SSE2.h" 12 #include "SkBlitRect_opts_SSE2.h"
13 #include "SkBlitRow.h" 13 #include "SkBlitRow.h"
14 #include "SkBlitRow_opts_SSE2.h" 14 #include "SkBlitRow_opts_SSE2.h"
15 #include "SkBlitRow_opts_SSE4.h"
16 #include "SkBlurImage_opts_SSE2.h" 15 #include "SkBlurImage_opts_SSE2.h"
17 #include "SkMorphology_opts.h" 16 #include "SkMorphology_opts.h"
18 #include "SkMorphology_opts_SSE2.h" 17 #include "SkMorphology_opts_SSE2.h"
19 #include "SkRTConf.h" 18 #include "SkRTConf.h"
20 #include "SkUtils.h" 19 #include "SkUtils.h"
21 #include "SkUtils_opts_SSE2.h" 20 #include "SkUtils_opts_SSE2.h"
22 #include "SkXfermode.h" 21 #include "SkXfermode.h"
23 #include "SkXfermode_proccoeff.h" 22 #include "SkXfermode_proccoeff.h"
24 23
25 #if defined(_MSC_VER) && defined(_WIN64) 24 #if defined(_MSC_VER) && defined(_WIN64)
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 }; 199 };
201 200
202 SkBlitRow::Proc SkBlitRow::PlatformProcs565(unsigned flags) { 201 SkBlitRow::Proc SkBlitRow::PlatformProcs565(unsigned flags) {
203 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { 202 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) {
204 return platform_16_procs[flags]; 203 return platform_16_procs[flags];
205 } else { 204 } else {
206 return NULL; 205 return NULL;
207 } 206 }
208 } 207 }
209 208
210 static SkBlitRow::Proc32 platform_32_procs_SSE2[] = { 209 static SkBlitRow::Proc32 platform_32_procs[] = {
211 NULL, // S32_Opaque, 210 NULL, // S32_Opaque,
212 S32_Blend_BlitRow32_SSE2, // S32_Blend, 211 S32_Blend_BlitRow32_SSE2, // S32_Blend,
213 S32A_Opaque_BlitRow32_SSE2, // S32A_Opaque 212 S32A_Opaque_BlitRow32_SSE2, // S32A_Opaque
214 S32A_Blend_BlitRow32_SSE2, // S32A_Blend, 213 S32A_Blend_BlitRow32_SSE2, // S32A_Blend,
215 }; 214 };
216 215
217 #if !defined(_MSC_VER)
218 static SkBlitRow::Proc32 platform_32_procs_SSE4[] = {
219 NULL, // S32_Opaque,
220 S32_Blend_BlitRow32_SSE2, // S32_Blend,
221 S32A_Opaque_BlitRow32_SSE4_asm, // S32A_Opaque
222 S32A_Blend_BlitRow32_SSE2, // S32A_Blend,
223 };
224 #endif
225
226 SkBlitRow::Proc32 SkBlitRow::PlatformProcs32(unsigned flags) { 216 SkBlitRow::Proc32 SkBlitRow::PlatformProcs32(unsigned flags) {
227 #if !defined(_MSC_VER)
228 if (supports_simd(SK_CPU_SSE_LEVEL_SSE42)) {
229 return platform_32_procs_SSE4[flags];
230 } else
231 #endif
232 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { 217 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) {
233 return platform_32_procs_SSE2[flags]; 218 return platform_32_procs[flags];
234 } else { 219 } else {
235 return NULL; 220 return NULL;
236 } 221 }
237 } 222 }
238 223
239 SkBlitRow::ColorProc SkBlitRow::PlatformColorProc() { 224 SkBlitRow::ColorProc SkBlitRow::PlatformColorProc() {
240 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { 225 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) {
241 return Color32_SSE2; 226 return Color32_SSE2;
242 } else { 227 } else {
243 return NULL; 228 return NULL;
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 } else { 370 } else {
386 return SkPlatformXfermodeFactory_impl(rec, mode); 371 return SkPlatformXfermodeFactory_impl(rec, mode);
387 } 372 }
388 } 373 }
389 374
390 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode); 375 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode);
391 376
392 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) { 377 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) {
393 return NULL; 378 return NULL;
394 } 379 }
OLDNEW
« no previous file with comments | « src/opts/SkBlitRow_opts_SSE4_x64_asm.S ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698