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

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

Issue 1134513003: We don't use boxBlurY. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 years, 7 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_none.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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 case kErodeY_SkMorphologyProcType: 343 case kErodeY_SkMorphologyProcType:
344 return SkErodeY_SSE2; 344 return SkErodeY_SSE2;
345 default: 345 default:
346 return NULL; 346 return NULL;
347 } 347 }
348 } 348 }
349 349
350 //////////////////////////////////////////////////////////////////////////////// 350 ////////////////////////////////////////////////////////////////////////////////
351 351
352 bool SkBoxBlurGetPlatformProcs(SkBoxBlurProc* boxBlurX, 352 bool SkBoxBlurGetPlatformProcs(SkBoxBlurProc* boxBlurX,
353 SkBoxBlurProc* boxBlurY,
354 SkBoxBlurProc* boxBlurXY, 353 SkBoxBlurProc* boxBlurXY,
355 SkBoxBlurProc* boxBlurYX) { 354 SkBoxBlurProc* boxBlurYX) {
356 #ifdef SK_DISABLE_BLUR_DIVISION_OPTIMIZATION
357 return false;
358 #else
359 if (supports_simd(SK_CPU_SSE_LEVEL_SSE41)) { 355 if (supports_simd(SK_CPU_SSE_LEVEL_SSE41)) {
360 return SkBoxBlurGetPlatformProcs_SSE4(boxBlurX, boxBlurY, boxBlurXY, box BlurYX); 356 return SkBoxBlurGetPlatformProcs_SSE4(boxBlurX, boxBlurXY, boxBlurYX);
361 } 357 }
362 else if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { 358 else if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) {
363 return SkBoxBlurGetPlatformProcs_SSE2(boxBlurX, boxBlurY, boxBlurXY, box BlurYX); 359 return SkBoxBlurGetPlatformProcs_SSE2(boxBlurX, boxBlurXY, boxBlurYX);
364 } 360 }
365 return false; 361 return false;
366 #endif
367 } 362 }
368 363
369 //////////////////////////////////////////////////////////////////////////////// 364 ////////////////////////////////////////////////////////////////////////////////
370 365
371 extern SkProcCoeffXfermode* SkPlatformXfermodeFactory_impl_SSE2(const ProcCoeff& rec, 366 extern SkProcCoeffXfermode* SkPlatformXfermodeFactory_impl_SSE2(const ProcCoeff& rec,
372 SkXfermode::Mode mode); 367 SkXfermode::Mode mode);
373 368
374 SkProcCoeffXfermode* SkPlatformXfermodeFactory_impl(const ProcCoeff& rec, 369 SkProcCoeffXfermode* SkPlatformXfermodeFactory_impl(const ProcCoeff& rec,
375 SkXfermode::Mode mode); 370 SkXfermode::Mode mode);
376 371
(...skipping 12 matching lines...) Expand all
389 } else { 384 } else {
390 return SkPlatformXfermodeFactory_impl(rec, mode); 385 return SkPlatformXfermodeFactory_impl(rec, mode);
391 } 386 }
392 } 387 }
393 388
394 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode); 389 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode);
395 390
396 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) { 391 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) {
397 return NULL; 392 return NULL;
398 } 393 }
OLDNEW
« no previous file with comments | « src/opts/SkBlurImage_opts_none.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698