// We're in the middle of cleaning this up.
static void Term() {}
- // If called immediately after Init(), SkJumper will use only a per-CPU baseline
- // feature set, ignoring any more advanced instructions that may be available.
- static void DisableFancySkJumperFeatures();
-
/**
* Return the version numbers for the library. If the parameter is not
* null, it is set to the version number.
static SkJumper_Engine gPlatform = kPortable;
static SkOnce gChooseEngineOnce;
-bool gSkJumperEnableFancyFeatures = true;
-
static SkJumper_Engine choose_engine() {
#if __has_feature(memory_sanitizer)
// We'll just run portable code.
}
#elif defined(__x86_64__) || defined(_M_X64)
- if (gSkJumperEnableFancyFeatures && SkCpu::Supports(SkCpu::HSW)) {
+ if (1 && SkCpu::Supports(SkCpu::HSW)) {
return {
#define M(stage) ASM(stage, hsw),
{ SK_RASTER_PIPELINE_STAGES(M) },
#undef M
};
}
- if (gSkJumperEnableFancyFeatures && SkCpu::Supports(SkCpu::AVX)) {
+ if (1 && SkCpu::Supports(SkCpu::AVX)) {
return {
#define M(stage) ASM(stage, avx),
{ SK_RASTER_PIPELINE_STAGES(M) },
#undef M
};
}
- if (gSkJumperEnableFancyFeatures && SkCpu::Supports(SkCpu::SSE41)) {
+ if (1 && SkCpu::Supports(SkCpu::SSE41)) {
return {
#define M(stage) ASM(stage, sse41),
{ SK_RASTER_PIPELINE_STAGES(M) },
#ifndef SkJumper_DEFINED
#define SkJumper_DEFINED
-extern bool gSkJumperEnableFancyFeatures;
-
// This file contains definitions shared by SkJumper.cpp (compiled normally as part of Skia)
// and SkJumper_stages.cpp (compiled into Skia _and_ offline into SkJumper_generated.h).
// Keep it simple!