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>
This commit is contained in:
parent
70bc94f273
commit
7c14d274ee
@ -669,6 +669,8 @@ DEFINES_ALL = [
|
||||
"SK_WEBP_ENCODER_USE_DEFAULT_METHOD",
|
||||
# Temporarily Disable analytic AA for Google3
|
||||
"SK_NO_ANALYTIC_AA",
|
||||
# Experiment to diagnose image diffs in Google3
|
||||
"SK_DISABLE_SSSE3_RUNTIME_CHECK_FOR_LOWP_STAGES",
|
||||
]
|
||||
|
||||
################################################################################
|
||||
|
@ -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;
|
||||
@ -268,6 +271,7 @@ StartPipelineFn* SkRasterPipeline::build_pipeline(void** ip) const {
|
||||
return ASM(start_pipeline,ssse3_lowp);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
gChooseEngineOnce([]{ gEngine = choose_engine(); });
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user