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

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

Issue 285313002: SSE2 implementation of memcpy32 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase and fix comments Created 6 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/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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 } 298 }
299 299
300 SkMemset32Proc SkMemset32GetPlatformProc() { 300 SkMemset32Proc SkMemset32GetPlatformProc() {
301 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { 301 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) {
302 return sk_memset32_SSE2; 302 return sk_memset32_SSE2;
303 } else { 303 } else {
304 return NULL; 304 return NULL;
305 } 305 }
306 } 306 }
307 307
308 SkMemcpy32Proc SkMemcpy32GetPlatformProc() {
309 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) {
310 return sk_memcpy32_SSE2;
311 } else {
312 return NULL;
313 }
314 }
315
308 //////////////////////////////////////////////////////////////////////////////// 316 ////////////////////////////////////////////////////////////////////////////////
309 317
310 SkMorphologyImageFilter::Proc SkMorphologyGetPlatformProc(SkMorphologyProcType t ype) { 318 SkMorphologyImageFilter::Proc SkMorphologyGetPlatformProc(SkMorphologyProcType t ype) {
311 if (!supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { 319 if (!supports_simd(SK_CPU_SSE_LEVEL_SSE2)) {
312 return NULL; 320 return NULL;
313 } 321 }
314 switch (type) { 322 switch (type) {
315 case kDilateX_SkMorphologyProcType: 323 case kDilateX_SkMorphologyProcType:
316 return SkDilateX_SSE2; 324 return SkDilateX_SSE2;
317 case kDilateY_SkMorphologyProcType: 325 case kDilateY_SkMorphologyProcType:
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 } else { 372 } else {
365 return SkPlatformXfermodeFactory_impl(rec, mode); 373 return SkPlatformXfermodeFactory_impl(rec, mode);
366 } 374 }
367 } 375 }
368 376
369 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode); 377 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode);
370 378
371 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) { 379 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) {
372 return NULL; 380 return NULL;
373 } 381 }
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