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

Unified Diff: src/opts/opts_check_x86.cpp

Issue 788853002: Add SSSE3 acceleration for S32_D16_filter_DX (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « src/opts/SkBitmapProcState_opts_SSSE3.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 34aae928eb18e07d17669bb3cd3cc4b37c52831d..84041d05b0c8ba32494431f5c3c7ac1d94b9f854 100644
--- a/src/opts/opts_check_x86.cpp
+++ b/src/opts/opts_check_x86.cpp
@@ -176,7 +176,11 @@ void SkBitmapProcState::platformProcs() {
/* Check fSampleProc16 */
if (fSampleProc16 == S32_D16_filter_DX) {
- fSampleProc16 = S32_D16_filter_DX_SSE2;
+ if (ssse3) {
+ fSampleProc16 = S32_D16_filter_DX_SSSE3;
+ } else {
+ fSampleProc16 = S32_D16_filter_DX_SSE2;
+ }
} else if (ssse3 && fSampleProc16 == S32_D16_filter_DXDY) {
fSampleProc16 = S32_D16_filter_DXDY_SSSE3;
}
« no previous file with comments | « src/opts/SkBitmapProcState_opts_SSSE3.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698