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

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

Issue 157863003: Split opts_check_arm.cpp into per-class files (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 10 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/SkBlurImage_opts_arm.cpp ('k') | src/opts/SkUtils_opts_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
(Empty)
1 /*
2 * Copyright 2014 ARM Ltd.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #include "SkMorphology_opts.h"
9 #include "SkMorphology_opts_neon.h"
10 #include "SkUtilsArm.h"
11
12 SkMorphologyImageFilter::Proc SkMorphologyGetPlatformProc(SkMorphologyProcType t ype) {
13 #if SK_ARM_NEON_IS_NONE
14 return NULL;
15 #else
16 #if SK_ARM_NEON_IS_DYNAMIC
17 if (!sk_cpu_arm_has_neon()) {
18 return NULL;
19 }
20 #endif
21 switch (type) {
22 case kDilateX_SkMorphologyProcType:
23 return SkDilateX_neon;
24 case kDilateY_SkMorphologyProcType:
25 return SkDilateY_neon;
26 case kErodeX_SkMorphologyProcType:
27 return SkErodeX_neon;
28 case kErodeY_SkMorphologyProcType:
29 return SkErodeY_neon;
30 default:
31 return NULL;
32 }
33 #endif
34 }
OLDNEW
« no previous file with comments | « src/opts/SkBlurImage_opts_arm.cpp ('k') | src/opts/SkUtils_opts_arm.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698