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

Side by Side Diff: src/core/SkOpts.cpp

Issue 1679053002: Remove SkNx AVX code. It is not really used. Getting in the way of refactoring. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: GYP Created 4 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/core/SkNx.h ('k') | src/opts/SkNx_avx.h » ('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 2015 Google Inc. 2 * Copyright 2015 Google Inc.
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 "SkOnce.h" 8 #include "SkOnce.h"
9 #include "SkOpts.h" 9 #include "SkOpts.h"
10 10
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 decltype(gray_to_RGB1) gray_to_RGB1 = sk_default::gray_to_ RGB1; 87 decltype(gray_to_RGB1) gray_to_RGB1 = sk_default::gray_to_ RGB1;
88 decltype(grayA_to_RGBA) grayA_to_RGBA = sk_default::grayA_to _RGBA; 88 decltype(grayA_to_RGBA) grayA_to_RGBA = sk_default::grayA_to _RGBA;
89 decltype(grayA_to_rgbA) grayA_to_rgbA = sk_default::grayA_to _rgbA; 89 decltype(grayA_to_rgbA) grayA_to_rgbA = sk_default::grayA_to _rgbA;
90 decltype(inverted_CMYK_to_RGB1) inverted_CMYK_to_RGB1 = sk_default::inverted _CMYK_to_RGB1; 90 decltype(inverted_CMYK_to_RGB1) inverted_CMYK_to_RGB1 = sk_default::inverted _CMYK_to_RGB1;
91 decltype(inverted_CMYK_to_BGR1) inverted_CMYK_to_BGR1 = sk_default::inverted _CMYK_to_BGR1; 91 decltype(inverted_CMYK_to_BGR1) inverted_CMYK_to_BGR1 = sk_default::inverted _CMYK_to_BGR1;
92 92
93 // Each Init_foo() is defined in src/opts/SkOpts_foo.cpp. 93 // Each Init_foo() is defined in src/opts/SkOpts_foo.cpp.
94 void Init_ssse3(); 94 void Init_ssse3();
95 void Init_sse41(); 95 void Init_sse41();
96 void Init_sse42() {} 96 void Init_sse42() {}
97 void Init_avx(); 97 void Init_avx() {}
98 void Init_avx2() {} 98 void Init_avx2() {}
99 void Init_neon(); 99 void Init_neon();
100 100
101 static void init() { 101 static void init() {
102 // TODO: Chrome's not linking _sse* opts on iOS simulator builds. Bug o r feature? 102 // TODO: Chrome's not linking _sse* opts on iOS simulator builds. Bug o r feature?
103 #if defined(SK_CPU_X86) && !defined(SK_BUILD_FOR_IOS) 103 #if defined(SK_CPU_X86) && !defined(SK_BUILD_FOR_IOS)
104 uint32_t abcd[] = {0,0,0,0}; 104 uint32_t abcd[] = {0,0,0,0};
105 cpuid(abcd); 105 cpuid(abcd);
106 if (abcd[2] & (1<< 9)) { Init_ssse3(); } 106 if (abcd[2] & (1<< 9)) { Init_ssse3(); }
107 if (abcd[2] & (1<<19)) { Init_sse41(); } 107 if (abcd[2] & (1<<19)) { Init_sse41(); }
(...skipping 20 matching lines...) Expand all
128 128
129 SK_DECLARE_STATIC_ONCE(gInitOnce); 129 SK_DECLARE_STATIC_ONCE(gInitOnce);
130 void Init() { SkOnce(&gInitOnce, init); } 130 void Init() { SkOnce(&gInitOnce, init); }
131 131
132 #if SK_ALLOW_STATIC_GLOBAL_INITIALIZERS 132 #if SK_ALLOW_STATIC_GLOBAL_INITIALIZERS
133 static struct AutoInit { 133 static struct AutoInit {
134 AutoInit() { Init(); } 134 AutoInit() { Init(); }
135 } gAutoInit; 135 } gAutoInit;
136 #endif 136 #endif
137 } 137 }
OLDNEW
« no previous file with comments | « src/core/SkNx.h ('k') | src/opts/SkNx_avx.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698