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

Side by Side Diff: src/opts/SkBlurImage_opts_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 2013 The Android Open Source Project 2 * Copyright 2013 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 8
9 #include "SkBitmap.h" 9 #include "SkBitmap.h"
10 #include "SkColorPriv.h" 10 #include "SkColorPriv.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 } 100 }
101 src += srcStrideY; 101 src += srcStrideY;
102 dst += dstStrideY; 102 dst += dstStrideY;
103 } 103 }
104 } 104 }
105 105
106 } // namespace 106 } // namespace
107 107
108 bool SkBoxBlurGetPlatformProcs_SSE2(SkBoxBlurProc* boxBlurX, 108 bool SkBoxBlurGetPlatformProcs_SSE2(SkBoxBlurProc* boxBlurX,
109 SkBoxBlurProc* boxBlurY, 109 SkBoxBlurProc* boxBlurY,
110 SkBoxBlurProc* boxBlurXY) { 110 SkBoxBlurProc* boxBlurXY,
111 SkBoxBlurProc* boxBlurYX) {
111 *boxBlurX = SkBoxBlur_SSE2<kX, kX>; 112 *boxBlurX = SkBoxBlur_SSE2<kX, kX>;
112 *boxBlurY = SkBoxBlur_SSE2<kY, kY>; 113 *boxBlurY = SkBoxBlur_SSE2<kY, kY>;
113 *boxBlurXY = SkBoxBlur_SSE2<kX, kY>; 114 *boxBlurXY = SkBoxBlur_SSE2<kX, kY>;
115 *boxBlurYX = SkBoxBlur_SSE2<kY, kX>;
114 return true; 116 return true;
115 } 117 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698