OLD | NEW |
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 "SkBitmapProcState_opts_SSE2.h" | 8 #include "SkBitmapProcState_opts_SSE2.h" |
9 #include "SkBitmapProcState_opts_SSSE3.h" | 9 #include "SkBitmapProcState_opts_SSSE3.h" |
10 #include "SkBitmapFilter_opts_SSE2.h" | 10 #include "SkBitmapFilter_opts_SSE2.h" |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 return SkErodeX_SSE2; | 264 return SkErodeX_SSE2; |
265 case kErodeY_SkMorphologyProcType: | 265 case kErodeY_SkMorphologyProcType: |
266 return SkErodeY_SSE2; | 266 return SkErodeY_SSE2; |
267 default: | 267 default: |
268 return NULL; | 268 return NULL; |
269 } | 269 } |
270 } | 270 } |
271 | 271 |
272 bool SkBoxBlurGetPlatformProcs(SkBoxBlurProc* boxBlurX, | 272 bool SkBoxBlurGetPlatformProcs(SkBoxBlurProc* boxBlurX, |
273 SkBoxBlurProc* boxBlurY, | 273 SkBoxBlurProc* boxBlurY, |
274 SkBoxBlurProc* boxBlurXY) { | 274 SkBoxBlurProc* boxBlurXY, |
| 275 SkBoxBlurProc* boxBlurYX) { |
275 #ifdef SK_DISABLE_BLUR_DIVISION_OPTIMIZATION | 276 #ifdef SK_DISABLE_BLUR_DIVISION_OPTIMIZATION |
276 return false; | 277 return false; |
277 #else | 278 #else |
278 if (!cachedHasSSE2()) { | 279 if (!cachedHasSSE2()) { |
279 return false; | 280 return false; |
280 } | 281 } |
281 return SkBoxBlurGetPlatformProcs_SSE2(boxBlurX, boxBlurY, boxBlurXY); | 282 return SkBoxBlurGetPlatformProcs_SSE2(boxBlurX, boxBlurY, boxBlurXY, boxBlur
YX); |
282 #endif | 283 #endif |
283 } | 284 } |
284 | 285 |
285 SkBlitRow::ColorRectProc PlatformColorRectProcFactory(); // suppress warning | 286 SkBlitRow::ColorRectProc PlatformColorRectProcFactory(); // suppress warning |
286 | 287 |
287 SkBlitRow::ColorRectProc PlatformColorRectProcFactory() { | 288 SkBlitRow::ColorRectProc PlatformColorRectProcFactory() { |
288 if (cachedHasSSE2()) { | 289 if (cachedHasSSE2()) { |
289 return ColorRect32_SSE2; | 290 return ColorRect32_SSE2; |
290 } else { | 291 } else { |
291 return NULL; | 292 return NULL; |
292 } | 293 } |
293 } | 294 } |
OLD | NEW |