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

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

Issue 390063002: Revert of Enable the SSSE3 compile time check on all platforms. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 5 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/SkBitmapProcState_opts_SSSE3.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 2014 The Android Open Source Project 2 * Copyright 2014 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 "SkBitmap.h" 8 #include "SkBitmap.h"
9 #include "SkBlurImage_opts_SSE4.h" 9 #include "SkBlurImage_opts_SSE4.h"
10 #include "SkColorPriv.h" 10 #include "SkColorPriv.h"
11 #include "SkRect.h" 11 #include "SkRect.h"
12 12
13 /* With the exception of the compilers that don't support it, we always build th e 13 /* With the exception of the Android framework we always build the SSE4 function s
14 * SSE4 functions and enable the caller to determine SSE4 support. However for 14 * and enable the caller to determine SSE4 support. However, for the Android fr amework,
15 * compilers that do not support SSE4x we provide a stub implementation. 15 * if the device does not support SSE4x then the compiler will not supply the re quired
16 * -msse4* option needed to build this file, so instead we provide a stub implem entation.
16 */ 17 */
17 #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE41 18 #if !defined(SK_BUILD_FOR_ANDROID_FRAMEWORK) || SK_CPU_SSE_LEVEL >= SK_CPU_SSE_L EVEL_SSE41
18 19
19 #include <smmintrin.h> 20 #include <smmintrin.h>
20 21
21 namespace { 22 namespace {
22 enum BlurDirection { 23 enum BlurDirection {
23 kX, kY 24 kX, kY
24 }; 25 };
25 26
26 /* Helper function to spread the components of a 32-bit integer into the 27 /* Helper function to spread the components of a 32-bit integer into the
27 * lower 8 bits of each 32-bit element of an SSE register. 28 * lower 8 bits of each 32-bit element of an SSE register.
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 SkBoxBlurProc* boxBlurY, 103 SkBoxBlurProc* boxBlurY,
103 SkBoxBlurProc* boxBlurXY, 104 SkBoxBlurProc* boxBlurXY,
104 SkBoxBlurProc* boxBlurYX) { 105 SkBoxBlurProc* boxBlurYX) {
105 *boxBlurX = SkBoxBlur_SSE4<kX, kX>; 106 *boxBlurX = SkBoxBlur_SSE4<kX, kX>;
106 *boxBlurY = SkBoxBlur_SSE4<kY, kY>; 107 *boxBlurY = SkBoxBlur_SSE4<kY, kY>;
107 *boxBlurXY = SkBoxBlur_SSE4<kX, kY>; 108 *boxBlurXY = SkBoxBlur_SSE4<kX, kY>;
108 *boxBlurYX = SkBoxBlur_SSE4<kY, kX>; 109 *boxBlurYX = SkBoxBlur_SSE4<kY, kX>;
109 return true; 110 return true;
110 } 111 }
111 112
112 #else // SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE41 113 #else // !defined(SK_BUILD_FOR_ANDROID_FRAMEWORK) || SK_CPU_SSE_LEVEL >= SK_CPU_ SSE_LEVEL_SSE41
113 114
114 bool SkBoxBlurGetPlatformProcs_SSE4(SkBoxBlurProc* boxBlurX, 115 bool SkBoxBlurGetPlatformProcs_SSE4(SkBoxBlurProc* boxBlurX,
115 SkBoxBlurProc* boxBlurY, 116 SkBoxBlurProc* boxBlurY,
116 SkBoxBlurProc* boxBlurXY, 117 SkBoxBlurProc* boxBlurXY,
117 SkBoxBlurProc* boxBlurYX) { 118 SkBoxBlurProc* boxBlurYX) {
118 sk_throw(); 119 sk_throw();
119 return false; 120 return false;
120 } 121 }
121 122
122 123
123 #endif 124 #endif
OLDNEW
« 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