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

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

Issue 390453002: Add support for NEON intrinsics to speed up texture compression. We can (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix arm and neon compatibility Created 6 years, 5 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/SkTextureCompression_opts.h ('k') | src/opts/SkTextureCompression_opts_neon.h » ('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 Google Inc.
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 "SkTextureCompression_opts.h"
9 #include "SkTextureCompression_opts_neon.h"
10 #include "SkUtilsArm.h"
11
12 SkTextureCompressor::CompressionProc
13 SkTextureCompressorGetPlatformProc(SkColorType colorType, SkTextureCompressor::F ormat fmt) {
14 #if SK_ARM_NEON_IS_NONE
15 return NULL;
16 #else
17 #if SK_ARM_NEON_IS_DYNAMIC
18 if (!sk_cpu_arm_has_neon()) {
19 return NULL;
20 }
21 #endif
22 switch (colorType) {
23 case kAlpha_8_SkColorType:
24 {
25 switch (fmt) {
26 case SkTextureCompressor::kR11_EAC_Format:
27 return CompressA8toR11EAC_NEON;
28 default:
29 return NULL;
30 }
31 }
32 break;
33
34 default:
35 return NULL;
36 }
37 #endif
38 }
OLDNEW
« no previous file with comments | « src/opts/SkTextureCompression_opts.h ('k') | src/opts/SkTextureCompression_opts_neon.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698