rename confusing lowp guard
Change-Id: I346429015e5f902b0a35663e140bb9a025c4220e
Reviewed-on: https://skia-review.googlesource.com/34680
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Mike Klein <mtklein@chromium.org>
diff --git a/public.bzl b/public.bzl
index d791473..dbe2d49 100644
--- a/public.bzl
+++ b/public.bzl
@@ -668,7 +668,7 @@
# Should remove after we update golden images
"SK_WEBP_ENCODER_USE_DEFAULT_METHOD",
# Experiment to diagnose image diffs in Google3
- "SK_DISABLE_SSSE3_RUNTIME_CHECK_FOR_LOWP_STAGES",
+ "SK_JUMPER_DISABLE_8BIT",
]
################################################################################
diff --git a/src/jumper/SkJumper.cpp b/src/jumper/SkJumper.cpp
index e1888a8..8d773b0 100644
--- a/src/jumper/SkJumper.cpp
+++ b/src/jumper/SkJumper.cpp
@@ -30,7 +30,7 @@
static const int kNumStages = SK_RASTER_PIPELINE_STAGES(M);
#undef M
-#ifndef SK_DISABLE_SSSE3_RUNTIME_CHECK_FOR_LOWP_STAGES
+#ifndef SK_JUMPER_DISABLE_8BIT
#if 0 && !__has_feature(memory_sanitizer) && (defined(__x86_64__) || defined(_M_X64))
#include <atomic>
@@ -334,7 +334,7 @@
return kPortable;
}
-#ifndef SK_DISABLE_SSSE3_RUNTIME_CHECK_FOR_LOWP_STAGES
+#ifndef SK_JUMPER_DISABLE_8BIT
static const SkJumper_Engine kNone = {
#define M(stage) nullptr,
{ SK_RASTER_PIPELINE_STAGES(M) },
@@ -380,7 +380,7 @@
#endif
const SkJumper_Engine& SkRasterPipeline::build_pipeline(void** ip) const {
-#ifndef SK_DISABLE_SSSE3_RUNTIME_CHECK_FOR_LOWP_STAGES
+#ifndef SK_JUMPER_DISABLE_8BIT
gChooseLowpOnce([]{ gLowp = choose_lowp(); });
// First try to build a lowp pipeline. If that fails, fall back to normal float gEngine.