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

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: 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
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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 } 304 }
305 305
306 SkMemset32Proc SkMemset32GetPlatformProc() { 306 SkMemset32Proc SkMemset32GetPlatformProc() {
307 if (cachedHasSSE2()) { 307 if (cachedHasSSE2()) {
308 return sk_memset32_SSE2; 308 return sk_memset32_SSE2;
309 } else { 309 } else {
310 return NULL; 310 return NULL;
311 } 311 }
312 } 312 }
313 313
314 SkMemcpy32Proc SkMemcpy32GetPlatformProc() {
315 if (cachedHasSSE2()) {
mtklein 2014/05/15 15:38:30 Once you rebase this will be if (supports_simd(SK_
qiankun 2014/05/20 09:35:30 Done.
316 return sk_memcpy32_SSE2;
317 } else {
318 return NULL;
319 }
320 }
321
314 //////////////////////////////////////////////////////////////////////////////// 322 ////////////////////////////////////////////////////////////////////////////////
315 323
316 SkMorphologyImageFilter::Proc SkMorphologyGetPlatformProc(SkMorphologyProcType t ype) { 324 SkMorphologyImageFilter::Proc SkMorphologyGetPlatformProc(SkMorphologyProcType t ype) {
317 if (!cachedHasSSE2()) { 325 if (!cachedHasSSE2()) {
318 return NULL; 326 return NULL;
319 } 327 }
320 switch (type) { 328 switch (type) {
321 case kDilateX_SkMorphologyProcType: 329 case kDilateX_SkMorphologyProcType:
322 return SkDilateX_SSE2; 330 return SkDilateX_SSE2;
323 case kDilateY_SkMorphologyProcType: 331 case kDilateY_SkMorphologyProcType:
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 } else { 378 } else {
371 return SkPlatformXfermodeFactory_impl(rec, mode); 379 return SkPlatformXfermodeFactory_impl(rec, mode);
372 } 380 }
373 } 381 }
374 382
375 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode); 383 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode);
376 384
377 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) { 385 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) {
378 return NULL; 386 return NULL;
379 } 387 }
OLDNEW
« src/opts/SkUtils_opts_SSE2.cpp ('K') | « src/opts/SkUtils_opts_none.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698