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

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

Issue 66413007: Implement a speedup for Y-only blurs by transposing. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Fix _none version of SkBoxBlurGetPlatformProcs. Created 7 years, 1 month 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
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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 return SkErodeX_SSE2; 264 return SkErodeX_SSE2;
265 case kErodeY_SkMorphologyProcType: 265 case kErodeY_SkMorphologyProcType:
266 return SkErodeY_SSE2; 266 return SkErodeY_SSE2;
267 default: 267 default:
268 return NULL; 268 return NULL;
269 } 269 }
270 } 270 }
271 271
272 bool SkBoxBlurGetPlatformProcs(SkBoxBlurProc* boxBlurX, 272 bool SkBoxBlurGetPlatformProcs(SkBoxBlurProc* boxBlurX,
273 SkBoxBlurProc* boxBlurY, 273 SkBoxBlurProc* boxBlurY,
274 SkBoxBlurProc* boxBlurXY) { 274 SkBoxBlurProc* boxBlurXY,
275 SkBoxBlurProc* boxBlurYX) {
275 #ifdef SK_DISABLE_BLUR_DIVISION_OPTIMIZATION 276 #ifdef SK_DISABLE_BLUR_DIVISION_OPTIMIZATION
276 return false; 277 return false;
277 #else 278 #else
278 if (!cachedHasSSE2()) { 279 if (!cachedHasSSE2()) {
279 return false; 280 return false;
280 } 281 }
281 return SkBoxBlurGetPlatformProcs_SSE2(boxBlurX, boxBlurY, boxBlurXY); 282 return SkBoxBlurGetPlatformProcs_SSE2(boxBlurX, boxBlurY, boxBlurXY, boxBlur YX);
282 #endif 283 #endif
283 } 284 }
284 285
285 SkBlitRow::ColorRectProc PlatformColorRectProcFactory(); // suppress warning 286 SkBlitRow::ColorRectProc PlatformColorRectProcFactory(); // suppress warning
286 287
287 SkBlitRow::ColorRectProc PlatformColorRectProcFactory() { 288 SkBlitRow::ColorRectProc PlatformColorRectProcFactory() {
288 if (cachedHasSSE2()) { 289 if (cachedHasSSE2()) {
289 return ColorRect32_SSE2; 290 return ColorRect32_SSE2;
290 } else { 291 } else {
291 return NULL; 292 return NULL;
292 } 293 }
293 } 294 }
OLDNEW
« src/effects/SkBlurImageFilter.cpp ('K') | « src/opts/SkBlurImage_opts_none.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698