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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 } | 244 } |
245 | 245 |
246 SkMemset32Proc SkMemset32GetPlatformProc() { | 246 SkMemset32Proc SkMemset32GetPlatformProc() { |
247 if (cachedHasSSE2()) { | 247 if (cachedHasSSE2()) { |
248 return sk_memset32_SSE2; | 248 return sk_memset32_SSE2; |
249 } else { | 249 } else { |
250 return NULL; | 250 return NULL; |
251 } | 251 } |
252 } | 252 } |
253 | 253 |
254 SkMorphologyProc SkMorphologyGetPlatformProc(SkMorphologyProcType type) { | 254 SkMorphologyImageFilter::Proc SkMorphologyGetPlatformProc(SkMorphologyProcType t
ype) { |
255 if (!cachedHasSSE2()) { | 255 if (!cachedHasSSE2()) { |
256 return NULL; | 256 return NULL; |
257 } | 257 } |
258 switch (type) { | 258 switch (type) { |
259 case kDilateX_SkMorphologyProcType: | 259 case kDilateX_SkMorphologyProcType: |
260 return SkDilateX_SSE2; | 260 return SkDilateX_SSE2; |
261 case kDilateY_SkMorphologyProcType: | 261 case kDilateY_SkMorphologyProcType: |
262 return SkDilateY_SSE2; | 262 return SkDilateY_SSE2; |
263 case kErodeX_SkMorphologyProcType: | 263 case kErodeX_SkMorphologyProcType: |
264 return SkErodeX_SSE2; | 264 return SkErodeX_SSE2; |
(...skipping 20 matching lines...) Expand all Loading... |
285 | 285 |
286 SkBlitRow::ColorRectProc PlatformColorRectProcFactory(); // suppress warning | 286 SkBlitRow::ColorRectProc PlatformColorRectProcFactory(); // suppress warning |
287 | 287 |
288 SkBlitRow::ColorRectProc PlatformColorRectProcFactory() { | 288 SkBlitRow::ColorRectProc PlatformColorRectProcFactory() { |
289 if (cachedHasSSE2()) { | 289 if (cachedHasSSE2()) { |
290 return ColorRect32_SSE2; | 290 return ColorRect32_SSE2; |
291 } else { | 291 } else { |
292 return NULL; | 292 return NULL; |
293 } | 293 } |
294 } | 294 } |
OLD | NEW |