Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(649)

Side by Side Diff: src/opts/opts_check_x86.cpp

Issue 525283002: Enable highQualityFilter_SSE2 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix mac gm test Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/opts/SkBitmapFilter_opts_SSE2.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « src/opts/SkBitmapFilter_opts_SSE2.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698