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

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

Issue 1256763003: Remove sk_memcpy32 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 4 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/SkUtils_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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 } 310 }
311 311
312 SkMemset32Proc SkMemset32GetPlatformProc() { 312 SkMemset32Proc SkMemset32GetPlatformProc() {
313 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { 313 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) {
314 return sk_memset32_SSE2; 314 return sk_memset32_SSE2;
315 } else { 315 } else {
316 return NULL; 316 return NULL;
317 } 317 }
318 } 318 }
319 319
320 SkMemcpy32Proc SkMemcpy32GetPlatformProc() {
321 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) {
322 return sk_memcpy32_SSE2;
323 } else {
324 return NULL;
325 }
326 }
327
328 //////////////////////////////////////////////////////////////////////////////// 320 ////////////////////////////////////////////////////////////////////////////////
329 321
330 SkMorphologyImageFilter::Proc SkMorphologyGetPlatformProc(SkMorphologyProcType t ype) { 322 SkMorphologyImageFilter::Proc SkMorphologyGetPlatformProc(SkMorphologyProcType t ype) {
331 if (!supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { 323 if (!supports_simd(SK_CPU_SSE_LEVEL_SSE2)) {
332 return NULL; 324 return NULL;
333 } 325 }
334 switch (type) { 326 switch (type) {
335 case kDilateX_SkMorphologyProcType: 327 case kDilateX_SkMorphologyProcType:
336 return SkDilateX_SSE2; 328 return SkDilateX_SSE2;
337 case kDilateY_SkMorphologyProcType: 329 case kDilateY_SkMorphologyProcType:
(...skipping 13 matching lines...) Expand all
351 SkBoxBlurProc* boxBlurXY, 343 SkBoxBlurProc* boxBlurXY,
352 SkBoxBlurProc* boxBlurYX) { 344 SkBoxBlurProc* boxBlurYX) {
353 if (supports_simd(SK_CPU_SSE_LEVEL_SSE41)) { 345 if (supports_simd(SK_CPU_SSE_LEVEL_SSE41)) {
354 return SkBoxBlurGetPlatformProcs_SSE4(boxBlurX, boxBlurXY, boxBlurYX); 346 return SkBoxBlurGetPlatformProcs_SSE4(boxBlurX, boxBlurXY, boxBlurYX);
355 } 347 }
356 else if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { 348 else if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) {
357 return SkBoxBlurGetPlatformProcs_SSE2(boxBlurX, boxBlurXY, boxBlurYX); 349 return SkBoxBlurGetPlatformProcs_SSE2(boxBlurX, boxBlurXY, boxBlurYX);
358 } 350 }
359 return false; 351 return false;
360 } 352 }
OLDNEW
« no previous file with comments | « src/opts/SkUtils_opts_none.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698