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

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

Issue 98373003: Do proper cpu checking for NEON SkBoxBlur procs. (Closed) Base URL: /usr/local/google/home/senorblanco/src/skia-android/../skia@master
Patch Set: Created 7 years 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/SkBlurImage_opts_neon.h ('k') | src/opts/opts_check_arm.cpp » ('j') | 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 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 } 85 }
86 dptr += dstStrideX; 86 dptr += dstStrideX;
87 } 87 }
88 src += srcStrideY; 88 src += srcStrideY;
89 dst += dstStrideY; 89 dst += dstStrideY;
90 } 90 }
91 } 91 }
92 92
93 } // namespace 93 } // namespace
94 94
95 bool SkBoxBlurGetPlatformProcs(SkBoxBlurProc* boxBlurX, 95 bool SkBoxBlurGetPlatformProcs_NEON(SkBoxBlurProc* boxBlurX,
96 SkBoxBlurProc* boxBlurY, 96 SkBoxBlurProc* boxBlurY,
97 SkBoxBlurProc* boxBlurXY, 97 SkBoxBlurProc* boxBlurXY,
98 SkBoxBlurProc* boxBlurYX) { 98 SkBoxBlurProc* boxBlurYX) {
99 *boxBlurX = SkBoxBlur_NEON<kX, kX>; 99 *boxBlurX = SkBoxBlur_NEON<kX, kX>;
100 *boxBlurY = SkBoxBlur_NEON<kY, kY>; 100 *boxBlurY = SkBoxBlur_NEON<kY, kY>;
101 *boxBlurXY = SkBoxBlur_NEON<kX, kY>; 101 *boxBlurXY = SkBoxBlur_NEON<kX, kY>;
102 *boxBlurYX = SkBoxBlur_NEON<kY, kX>; 102 *boxBlurYX = SkBoxBlur_NEON<kY, kX>;
103 return true; 103 return true;
104 } 104 }
OLDNEW
« no previous file with comments | « src/opts/SkBlurImage_opts_neon.h ('k') | src/opts/opts_check_arm.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698