diff options
author | Mike Reed <reed@google.com> | 2017-06-08 14:16:03 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-06-08 18:38:43 +0000 |
commit | 7c14d274ee6d0e4852aae1ba34873656fdd76ef1 (patch) | |
tree | badf2bc1ff483968f013f53bc31faedd70907de8 /src/jumper | |
parent | 70bc94f273224ed0755ae11dc479c57ff37e0436 (diff) |
Experimental change to diagnose image diffs in g3
Bug: skia:
Change-Id: I33226a0266093a98083b4c78cdaba402ce3f3929
Reviewed-on: https://skia-review.googlesource.com/19082
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Ben Wagner <benjaminwagner@google.com>
Diffstat (limited to 'src/jumper')
-rw-r--r-- | src/jumper/SkJumper.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/jumper/SkJumper.cpp b/src/jumper/SkJumper.cpp index 82248001f8..f10207a058 100644 --- a/src/jumper/SkJumper.cpp +++ b/src/jumper/SkJumper.cpp @@ -30,6 +30,7 @@ static K kConstants = { static const int kNumStages = SK_RASTER_PIPELINE_STAGES(M); #undef M +#ifndef SK_DISABLE_SSSE3_RUNTIME_CHECK_FOR_LOWP_STAGES #if !__has_feature(memory_sanitizer) && (defined(__x86_64__) || defined(_M_X64)) #if 0 #include <atomic> @@ -56,6 +57,7 @@ static const int kNumStages = SK_RASTER_PIPELINE_STAGES(M); static void log_missing(SkRasterPipeline::StockStage) {} #endif #endif +#endif // We can't express the real types of most stage functions portably, so we use a stand-in. // We'll only ever call start_pipeline(), which then chains into the rest for us. @@ -239,6 +241,7 @@ static SkJumper_Engine choose_engine() { } StartPipelineFn* SkRasterPipeline::build_pipeline(void** ip) const { +#ifndef SK_DISABLE_SSSE3_RUNTIME_CHECK_FOR_LOWP_STAGES #if !__has_feature(memory_sanitizer) && (defined(__x86_64__) || defined(_M_X64)) if (SkCpu::Supports(SkCpu::SSSE3)) { void** reset_point = ip; @@ -269,6 +272,7 @@ StartPipelineFn* SkRasterPipeline::build_pipeline(void** ip) const { } } #endif +#endif gChooseEngineOnce([]{ gEngine = choose_engine(); }); // We're building the pipeline backwards, so we start with the final stage just_return. |