OLD | NEW |
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" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 dptr += dstStrideX; | 87 dptr += dstStrideX; |
88 } | 88 } |
89 src += srcStrideY; | 89 src += srcStrideY; |
90 dst += dstStrideY; | 90 dst += dstStrideY; |
91 } | 91 } |
92 } | 92 } |
93 | 93 |
94 } // namespace | 94 } // namespace |
95 | 95 |
96 bool SkBoxBlurGetPlatformProcs_SSE4(SkBoxBlurProc* boxBlurX, | 96 bool SkBoxBlurGetPlatformProcs_SSE4(SkBoxBlurProc* boxBlurX, |
97 SkBoxBlurProc* boxBlurY, | |
98 SkBoxBlurProc* boxBlurXY, | 97 SkBoxBlurProc* boxBlurXY, |
99 SkBoxBlurProc* boxBlurYX) { | 98 SkBoxBlurProc* boxBlurYX) { |
100 *boxBlurX = SkBoxBlur_SSE4<kX, kX>; | 99 *boxBlurX = SkBoxBlur_SSE4<kX, kX>; |
101 *boxBlurY = SkBoxBlur_SSE4<kY, kY>; | |
102 *boxBlurXY = SkBoxBlur_SSE4<kX, kY>; | 100 *boxBlurXY = SkBoxBlur_SSE4<kX, kY>; |
103 *boxBlurYX = SkBoxBlur_SSE4<kY, kX>; | 101 *boxBlurYX = SkBoxBlur_SSE4<kY, kX>; |
104 return true; | 102 return true; |
105 } | 103 } |
106 | 104 |
107 #else // SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE41 | 105 #else // SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE41 |
108 | 106 |
109 bool SkBoxBlurGetPlatformProcs_SSE4(SkBoxBlurProc* boxBlurX, | 107 bool SkBoxBlurGetPlatformProcs_SSE4(SkBoxBlurProc* boxBlurX, |
110 SkBoxBlurProc* boxBlurY, | |
111 SkBoxBlurProc* boxBlurXY, | 108 SkBoxBlurProc* boxBlurXY, |
112 SkBoxBlurProc* boxBlurYX) { | 109 SkBoxBlurProc* boxBlurYX) { |
113 sk_throw(); | 110 sk_throw(); |
114 return false; | 111 return false; |
115 } | 112 } |
116 | 113 |
117 | 114 |
118 #endif | 115 #endif |
OLD | NEW |