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

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

Issue 22801016: Implement highQualityFilter16 so GM doesn't crash when you give it resources. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
« src/core/SkBitmapFilter.cpp ('K') | « src/core/SkBitmapProcState.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 "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"
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 } else if (fMatrixProc == ClampX_ClampY_nofilter_scale) { 148 } else if (fMatrixProc == ClampX_ClampY_nofilter_scale) {
149 fMatrixProc = ClampX_ClampY_nofilter_scale_SSE2; 149 fMatrixProc = ClampX_ClampY_nofilter_scale_SSE2;
150 } 150 }
151 151
152 if (fMatrixProc == ClampX_ClampY_filter_affine) { 152 if (fMatrixProc == ClampX_ClampY_filter_affine) {
153 fMatrixProc = ClampX_ClampY_filter_affine_SSE2; 153 fMatrixProc = ClampX_ClampY_filter_affine_SSE2;
154 } else if (fMatrixProc == ClampX_ClampY_nofilter_affine) { 154 } else if (fMatrixProc == ClampX_ClampY_nofilter_affine) {
155 fMatrixProc = ClampX_ClampY_nofilter_affine_SSE2; 155 fMatrixProc = ClampX_ClampY_nofilter_affine_SSE2;
156 } 156 }
157 if (c_hqfilter_sse) { 157 if (c_hqfilter_sse) {
158 if (fShaderProc32 == highQualityFilter) { 158 if (fShaderProc32 == highQualityFilter32) {
159 fShaderProc32 = highQualityFilter_SSE2; 159 fShaderProc32 = highQualityFilter_SSE2;
160 } 160 }
161 } 161 }
162 } 162 }
163 } 163 }
164 164
165 static SkBlitRow::Proc32 platform_32_procs[] = { 165 static SkBlitRow::Proc32 platform_32_procs[] = {
166 NULL, // S32_Opaque, 166 NULL, // S32_Opaque,
167 S32_Blend_BlitRow32_SSE2, // S32_Blend, 167 S32_Blend_BlitRow32_SSE2, // S32_Blend,
168 S32A_Opaque_BlitRow32_SSE2, // S32A_Opaque 168 S32A_Opaque_BlitRow32_SSE2, // S32A_Opaque
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 250
251 SkBlitRow::ColorRectProc PlatformColorRectProcFactory(); // suppress warning 251 SkBlitRow::ColorRectProc PlatformColorRectProcFactory(); // suppress warning
252 252
253 SkBlitRow::ColorRectProc PlatformColorRectProcFactory() { 253 SkBlitRow::ColorRectProc PlatformColorRectProcFactory() {
254 if (cachedHasSSE2()) { 254 if (cachedHasSSE2()) {
255 return ColorRect32_SSE2; 255 return ColorRect32_SSE2;
256 } else { 256 } else {
257 return NULL; 257 return NULL;
258 } 258 }
259 } 259 }
OLDNEW
« src/core/SkBitmapFilter.cpp ('K') | « src/core/SkBitmapProcState.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698