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

Unified 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 side-by-side diff with in-line comments
Download patch
« src/opts/SkUtils_opts_SSE2.cpp ('K') | « src/opts/SkUtils_opts_none.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/opts/opts_check_x86.cpp
diff --git a/src/opts/opts_check_x86.cpp b/src/opts/opts_check_x86.cpp
index 0b0debb2708a80bd00cdc8e68b377917935f508b..d9917cc75cc35fce3bb43619d737221248f0e940 100644
--- a/src/opts/opts_check_x86.cpp
+++ b/src/opts/opts_check_x86.cpp
@@ -311,6 +311,14 @@ SkMemset32Proc SkMemset32GetPlatformProc() {
}
}
+SkMemcpy32Proc SkMemcpy32GetPlatformProc() {
+ 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.
+ return sk_memcpy32_SSE2;
+ } else {
+ return NULL;
+ }
+}
+
////////////////////////////////////////////////////////////////////////////////
SkMorphologyImageFilter::Proc SkMorphologyGetPlatformProc(SkMorphologyProcType type) {
« 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