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

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

Issue 1556003003: remove shadeSpan16 from shader (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: cleanup unused macro-generated procs Created 4 years, 11 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/SkBitmapProcState_opts_mips_dsp.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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 fSampleProc32 = S32_alpha_D32_filter_DX_SSSE3; 140 fSampleProc32 = S32_alpha_D32_filter_DX_SSSE3;
141 } else { 141 } else {
142 fSampleProc32 = S32_alpha_D32_filter_DX_SSE2; 142 fSampleProc32 = S32_alpha_D32_filter_DX_SSE2;
143 } 143 }
144 } else if (fSampleProc32 == S32_alpha_D32_filter_DXDY) { 144 } else if (fSampleProc32 == S32_alpha_D32_filter_DXDY) {
145 if (ssse3) { 145 if (ssse3) {
146 fSampleProc32 = S32_alpha_D32_filter_DXDY_SSSE3; 146 fSampleProc32 = S32_alpha_D32_filter_DXDY_SSSE3;
147 } 147 }
148 } 148 }
149 149
150 /* Check fSampleProc16 */
151 if (fSampleProc16 == S32_D16_filter_DX) {
152 if (ssse3) {
153 fSampleProc16 = S32_D16_filter_DX_SSSE3;
154 } else {
155 fSampleProc16 = S32_D16_filter_DX_SSE2;
156 }
157 } else if (ssse3 && fSampleProc16 == S32_D16_filter_DXDY) {
158 fSampleProc16 = S32_D16_filter_DXDY_SSSE3;
159 }
160
161 /* Check fMatrixProc */ 150 /* Check fMatrixProc */
162 if (fMatrixProc == ClampX_ClampY_filter_scale) { 151 if (fMatrixProc == ClampX_ClampY_filter_scale) {
163 fMatrixProc = ClampX_ClampY_filter_scale_SSE2; 152 fMatrixProc = ClampX_ClampY_filter_scale_SSE2;
164 } else if (fMatrixProc == ClampX_ClampY_nofilter_scale) { 153 } else if (fMatrixProc == ClampX_ClampY_nofilter_scale) {
165 fMatrixProc = ClampX_ClampY_nofilter_scale_SSE2; 154 fMatrixProc = ClampX_ClampY_nofilter_scale_SSE2;
166 } else if (fMatrixProc == ClampX_ClampY_filter_affine) { 155 } else if (fMatrixProc == ClampX_ClampY_filter_affine) {
167 fMatrixProc = ClampX_ClampY_filter_affine_SSE2; 156 fMatrixProc = ClampX_ClampY_filter_affine_SSE2;
168 } else if (fMatrixProc == ClampX_ClampY_nofilter_affine) { 157 } else if (fMatrixProc == ClampX_ClampY_nofilter_affine) {
169 fMatrixProc = ClampX_ClampY_nofilter_affine_SSE2; 158 fMatrixProc = ClampX_ClampY_nofilter_affine_SSE2;
170 } 159 }
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 } 234 }
246 } else { 235 } else {
247 return nullptr; 236 return nullptr;
248 } 237 }
249 238
250 } 239 }
251 240
252 SkBlitMask::RowProc SkBlitMask::PlatformRowProcs(SkColorType, SkMask::Format, Ro wFlags) { 241 SkBlitMask::RowProc SkBlitMask::PlatformRowProcs(SkColorType, SkMask::Format, Ro wFlags) {
253 return nullptr; 242 return nullptr;
254 } 243 }
OLDNEW
« no previous file with comments | « src/opts/SkBitmapProcState_opts_mips_dsp.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698