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" |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 return false; | 116 return false; |
117 #else | 117 #else |
118 static int gSIMDLevel = get_SIMD_level(); | 118 static int gSIMDLevel = get_SIMD_level(); |
119 return (minLevel <= gSIMDLevel); | 119 return (minLevel <= gSIMDLevel); |
120 #endif | 120 #endif |
121 } | 121 } |
122 } | 122 } |
123 | 123 |
124 //////////////////////////////////////////////////////////////////////////////// | 124 //////////////////////////////////////////////////////////////////////////////// |
125 | 125 |
126 SK_CONF_DECLARE( bool, c_hqfilter_sse, "bitmap.filter.highQualitySSE", false, "U
se SSE optimized version of high quality image filters"); | 126 SK_CONF_DECLARE( bool, c_hqfilter_sse, "bitmap.filter.highQualitySSE", true, "Us
e SSE optimized version of high quality image filters"); |
127 | 127 |
128 void SkBitmapScaler::PlatformConvolutionProcs(SkConvolutionProcs* procs) { | 128 void SkBitmapScaler::PlatformConvolutionProcs(SkConvolutionProcs* procs) { |
129 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { | 129 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { |
130 procs->fExtraHorizontalReads = 3; | 130 procs->fExtraHorizontalReads = 3; |
131 procs->fConvolveVertically = &convolveVertically_SSE2; | 131 procs->fConvolveVertically = &convolveVertically_SSE2; |
132 procs->fConvolve4RowsHorizontally = &convolve4RowsHorizontally_SSE2; | 132 procs->fConvolve4RowsHorizontally = &convolve4RowsHorizontally_SSE2; |
133 procs->fConvolveHorizontally = &convolveHorizontally_SSE2; | 133 procs->fConvolveHorizontally = &convolveHorizontally_SSE2; |
134 procs->fApplySIMDPadding = &applySIMDPadding_SSE2; | 134 procs->fApplySIMDPadding = &applySIMDPadding_SSE2; |
135 } | 135 } |
136 } | 136 } |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 } else { | 392 } else { |
393 return SkPlatformXfermodeFactory_impl(rec, mode); | 393 return SkPlatformXfermodeFactory_impl(rec, mode); |
394 } | 394 } |
395 } | 395 } |
396 | 396 |
397 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode); | 397 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode); |
398 | 398 |
399 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) { | 399 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) { |
400 return NULL; | 400 return NULL; |
401 } | 401 } |
OLD | NEW |