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

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

Issue 375503003: Revert of Add SSE4 version of BlurImage optimizations. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 5 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/SkBlurImage_opts_SSE4.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"
11 #include "SkBitmapScaler.h" 11 #include "SkBitmapScaler.h"
12 #include "SkBlitMask.h" 12 #include "SkBlitMask.h"
13 #include "SkBlitRect_opts_SSE2.h" 13 #include "SkBlitRect_opts_SSE2.h"
14 #include "SkBlitRow.h" 14 #include "SkBlitRow.h"
15 #include "SkBlitRow_opts_SSE2.h" 15 #include "SkBlitRow_opts_SSE2.h"
16 #include "SkBlitRow_opts_SSE4.h" 16 #include "SkBlitRow_opts_SSE4.h"
17 #include "SkBlurImage_opts_SSE2.h" 17 #include "SkBlurImage_opts_SSE2.h"
18 #include "SkBlurImage_opts_SSE4.h"
19 #include "SkMorphology_opts.h" 18 #include "SkMorphology_opts.h"
20 #include "SkMorphology_opts_SSE2.h" 19 #include "SkMorphology_opts_SSE2.h"
21 #include "SkRTConf.h" 20 #include "SkRTConf.h"
22 #include "SkUtils.h" 21 #include "SkUtils.h"
23 #include "SkUtils_opts_SSE2.h" 22 #include "SkUtils_opts_SSE2.h"
24 #include "SkXfermode.h" 23 #include "SkXfermode.h"
25 #include "SkXfermode_proccoeff.h" 24 #include "SkXfermode_proccoeff.h"
26 25
27 #if defined(_MSC_VER) && defined(_WIN64) 26 #if defined(_MSC_VER) && defined(_WIN64)
28 #include <intrin.h> 27 #include <intrin.h>
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 351
353 //////////////////////////////////////////////////////////////////////////////// 352 ////////////////////////////////////////////////////////////////////////////////
354 353
355 bool SkBoxBlurGetPlatformProcs(SkBoxBlurProc* boxBlurX, 354 bool SkBoxBlurGetPlatformProcs(SkBoxBlurProc* boxBlurX,
356 SkBoxBlurProc* boxBlurY, 355 SkBoxBlurProc* boxBlurY,
357 SkBoxBlurProc* boxBlurXY, 356 SkBoxBlurProc* boxBlurXY,
358 SkBoxBlurProc* boxBlurYX) { 357 SkBoxBlurProc* boxBlurYX) {
359 #ifdef SK_DISABLE_BLUR_DIVISION_OPTIMIZATION 358 #ifdef SK_DISABLE_BLUR_DIVISION_OPTIMIZATION
360 return false; 359 return false;
361 #else 360 #else
362 if (supports_simd(SK_CPU_SSE_LEVEL_SSE41)) { 361 if (!supports_simd(SK_CPU_SSE_LEVEL_SSE2)) {
363 return SkBoxBlurGetPlatformProcs_SSE4(boxBlurX, boxBlurY, boxBlurXY, box BlurYX); 362 return false;
364 } 363 }
365 else if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { 364 return SkBoxBlurGetPlatformProcs_SSE2(boxBlurX, boxBlurY, boxBlurXY, boxBlur YX);
366 return SkBoxBlurGetPlatformProcs_SSE2(boxBlurX, boxBlurY, boxBlurXY, box BlurYX);
367 }
368 return false;
369 #endif 365 #endif
370 } 366 }
371 367
372 //////////////////////////////////////////////////////////////////////////////// 368 ////////////////////////////////////////////////////////////////////////////////
373 369
374 extern SkProcCoeffXfermode* SkPlatformXfermodeFactory_impl_SSE2(const ProcCoeff& rec, 370 extern SkProcCoeffXfermode* SkPlatformXfermodeFactory_impl_SSE2(const ProcCoeff& rec,
375 SkXfermode::Mode mode); 371 SkXfermode::Mode mode);
376 372
377 SkProcCoeffXfermode* SkPlatformXfermodeFactory_impl(const ProcCoeff& rec, 373 SkProcCoeffXfermode* SkPlatformXfermodeFactory_impl(const ProcCoeff& rec,
378 SkXfermode::Mode mode); 374 SkXfermode::Mode mode);
(...skipping 13 matching lines...) Expand all
392 } else { 388 } else {
393 return SkPlatformXfermodeFactory_impl(rec, mode); 389 return SkPlatformXfermodeFactory_impl(rec, mode);
394 } 390 }
395 } 391 }
396 392
397 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode); 393 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode);
398 394
399 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) { 395 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) {
400 return NULL; 396 return NULL;
401 } 397 }
OLDNEW
« no previous file with comments | « src/opts/SkBlurImage_opts_SSE4.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698