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

Unified Diff: src/core/SkCpu.cpp

Issue 2138073002: Clean up hyper-local SkCpu feature test experiment. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkCpu.h ('k') | src/core/SkHalf.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkCpu.cpp
diff --git a/src/core/SkCpu.cpp b/src/core/SkCpu.cpp
index b296f0c02a5710b137e9e1bdf72669af2d743cff..0858abd40a7fcf22328926797c04ce034561372f 100644
--- a/src/core/SkCpu.cpp
+++ b/src/core/SkCpu.cpp
@@ -5,7 +5,6 @@
* found in the LICENSE file.
*/
-#define SkCpu_IMPL
#include "SkCpu.h"
#include "SkOnce.h"
@@ -79,17 +78,9 @@
#endif
-#if defined(_MSC_VER)
- const uint32_t SkCpu::gCachedFeatures = read_cpu_features();
+uint32_t SkCpu::gCachedFeatures = 0;
- void SkCpu::CacheRuntimeFeatures() {}
-
-#else
- uint32_t SkCpu::gCachedFeatures = 0;
-
- void SkCpu::CacheRuntimeFeatures() {
- static SkOnce once;
- once([] { gCachedFeatures = read_cpu_features(); });
- }
-
-#endif
+void SkCpu::CacheRuntimeFeatures() {
+ static SkOnce once;
+ once([] { gCachedFeatures = read_cpu_features(); });
+}
« no previous file with comments | « src/core/SkCpu.h ('k') | src/core/SkHalf.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698