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 "SkBitmapFilter_opts_SSE2.h" | 8 #include "SkBitmapFilter_opts_SSE2.h" |
9 #include "SkBitmapProcState_opts_SSE2.h" | 9 #include "SkBitmapProcState_opts_SSE2.h" |
10 #include "SkBitmapProcState_opts_SSSE3.h" | 10 #include "SkBitmapProcState_opts_SSSE3.h" |
11 #include "SkBitmapScaler.h" | 11 #include "SkBitmapScaler.h" |
12 #include "SkBlitMask.h" | 12 #include "SkBlitMask.h" |
13 #include "SkBlitRect_opts_SSE2.h" | |
14 #include "SkBlitRow.h" | 13 #include "SkBlitRow.h" |
15 #include "SkBlitRow_opts_SSE2.h" | 14 #include "SkBlitRow_opts_SSE2.h" |
16 #include "SkBlitRow_opts_SSE4.h" | 15 #include "SkBlitRow_opts_SSE4.h" |
17 #include "SkBlurImage_opts_SSE2.h" | 16 #include "SkBlurImage_opts_SSE2.h" |
18 #include "SkBlurImage_opts_SSE4.h" | 17 #include "SkBlurImage_opts_SSE4.h" |
19 #include "SkLazyPtr.h" | 18 #include "SkLazyPtr.h" |
20 #include "SkMorphology_opts.h" | 19 #include "SkMorphology_opts.h" |
21 #include "SkMorphology_opts_SSE2.h" | 20 #include "SkMorphology_opts_SSE2.h" |
22 #include "SkRTConf.h" | 21 #include "SkRTConf.h" |
23 #include "SkUtils.h" | 22 #include "SkUtils.h" |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
255 } | 254 } |
256 | 255 |
257 SkBlitRow::ColorProc SkBlitRow::PlatformColorProc() { | 256 SkBlitRow::ColorProc SkBlitRow::PlatformColorProc() { |
258 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { | 257 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { |
259 return Color32_SSE2; | 258 return Color32_SSE2; |
260 } else { | 259 } else { |
261 return NULL; | 260 return NULL; |
262 } | 261 } |
263 } | 262 } |
264 | 263 |
265 SkBlitRow::ColorRectProc PlatformColorRectProcFactory(); // suppress warning | |
mtklein
2015/02/24 16:34:23
I think you need to keep this. Otherwise Platform
henrik.smiding
2015/02/25 09:41:56
Ok, I was hoping it was an old leftover, since the
| |
266 | |
267 SkBlitRow::ColorRectProc PlatformColorRectProcFactory() { | 264 SkBlitRow::ColorRectProc PlatformColorRectProcFactory() { |
268 /* Return NULL for now, since the optimized path in ColorRect32_SSE2 is disabled . | |
269 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { | |
270 return ColorRect32_SSE2; | |
271 } else { | |
272 return NULL; | |
273 } | |
274 */ | |
275 return NULL; | 265 return NULL; |
276 } | 266 } |
277 | 267 |
278 //////////////////////////////////////////////////////////////////////////////// | 268 //////////////////////////////////////////////////////////////////////////////// |
279 | 269 |
280 SkBlitMask::ColorProc SkBlitMask::PlatformColorProcs(SkColorType dstCT, | 270 SkBlitMask::ColorProc SkBlitMask::PlatformColorProcs(SkColorType dstCT, |
281 SkMask::Format maskFormat, | 271 SkMask::Format maskFormat, |
282 SkColor color) { | 272 SkColor color) { |
283 if (SkMask::kA8_Format != maskFormat) { | 273 if (SkMask::kA8_Format != maskFormat) { |
284 return NULL; | 274 return NULL; |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
406 } else { | 396 } else { |
407 return SkPlatformXfermodeFactory_impl(rec, mode); | 397 return SkPlatformXfermodeFactory_impl(rec, mode); |
408 } | 398 } |
409 } | 399 } |
410 | 400 |
411 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode); | 401 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode); |
412 | 402 |
413 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) { | 403 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) { |
414 return NULL; | 404 return NULL; |
415 } | 405 } |
OLD | NEW |