| 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" | 
| 11 #include "SkBlitMask.h" | 11 #include "SkBlitMask.h" | 
| 12 #include "SkBlitRow.h" | 12 #include "SkBlitRow.h" | 
| 13 #include "SkBlitRect_opts_SSE2.h" | 13 #include "SkBlitRect_opts_SSE2.h" | 
| 14 #include "SkBlitRow_opts_SSE2.h" | 14 #include "SkBlitRow_opts_SSE2.h" | 
| 15 #include "SkBlurImage_opts_SSE2.h" | 15 #include "SkBlurImage_opts_SSE2.h" | 
| 16 #include "SkUtils_opts_SSE2.h" | 16 #include "SkUtils_opts_SSE2.h" | 
| 17 #include "SkUtils.h" | 17 #include "SkUtils.h" | 
| 18 #include "SkMorphology_opts.h" | 18 #include "SkMorphology_opts.h" | 
| 19 #include "SkMorphology_opts_SSE2.h" | 19 #include "SkMorphology_opts_SSE2.h" | 
| 20 #include "SkXfermode.h" |  | 
| 21 #include "SkXfermode_proccoeff.h" |  | 
| 22 | 20 | 
| 23 #include "SkRTConf.h" | 21 #include "SkRTConf.h" | 
| 24 | 22 | 
| 25 #if defined(_MSC_VER) && defined(_WIN64) | 23 #if defined(_MSC_VER) && defined(_WIN64) | 
| 26 #include <intrin.h> | 24 #include <intrin.h> | 
| 27 #endif | 25 #endif | 
| 28 | 26 | 
| 29 /* This file must *not* be compiled with -msse or -msse2, otherwise | 27 /* This file must *not* be compiled with -msse or -msse2, otherwise | 
| 30    gcc may generate sse2 even for scalar ops (and thus give an invalid | 28    gcc may generate sse2 even for scalar ops (and thus give an invalid | 
| 31    instruction on Pentium3 on the code below).  Only files named *_SSE2.cpp | 29    instruction on Pentium3 on the code below).  Only files named *_SSE2.cpp | 
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 302 | 300 | 
| 303 SkBlitRow::ColorRectProc PlatformColorRectProcFactory(); // suppress warning | 301 SkBlitRow::ColorRectProc PlatformColorRectProcFactory(); // suppress warning | 
| 304 | 302 | 
| 305 SkBlitRow::ColorRectProc PlatformColorRectProcFactory() { | 303 SkBlitRow::ColorRectProc PlatformColorRectProcFactory() { | 
| 306     if (cachedHasSSE2()) { | 304     if (cachedHasSSE2()) { | 
| 307         return ColorRect32_SSE2; | 305         return ColorRect32_SSE2; | 
| 308     } else { | 306     } else { | 
| 309         return NULL; | 307         return NULL; | 
| 310     } | 308     } | 
| 311 } | 309 } | 
| 312 |  | 
| 313 extern SkProcCoeffXfermode* SkPlatformXfermodeFactory_impl_SSE2(const ProcCoeff&
      rec, |  | 
| 314                                                                 SkXfermode::Mode
      mode); |  | 
| 315 |  | 
| 316 SkProcCoeffXfermode* SkPlatformXfermodeFactory_impl(const ProcCoeff& rec, |  | 
| 317                                                     SkXfermode::Mode mode); |  | 
| 318 |  | 
| 319 SkProcCoeffXfermode* SkPlatformXfermodeFactory_impl(const ProcCoeff& rec, |  | 
| 320                                                     SkXfermode::Mode mode) { |  | 
| 321     return NULL; |  | 
| 322 } |  | 
| 323 |  | 
| 324 SkProcCoeffXfermode* SkPlatformXfermodeFactory(const ProcCoeff& rec, |  | 
| 325                                                SkXfermode::Mode mode); |  | 
| 326 |  | 
| 327 SkProcCoeffXfermode* SkPlatformXfermodeFactory(const ProcCoeff& rec, |  | 
| 328                                                SkXfermode::Mode mode) { |  | 
| 329     if (cachedHasSSE2()) { |  | 
| 330         return SkPlatformXfermodeFactory_impl_SSE2(rec, mode); |  | 
| 331     } else { |  | 
| 332         return SkPlatformXfermodeFactory_impl(rec, mode); |  | 
| 333     } |  | 
| 334 } |  | 
| 335 |  | 
| 336 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode); |  | 
| 337 |  | 
| 338 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) { |  | 
| 339     return NULL; |  | 
| 340 } |  | 
| OLD | NEW | 
|---|