From 00dd9ac3a142dc4c673a085a79ff877101d1d4de Mon Sep 17 00:00:00 2001 From: Brian Osman Date: Thu, 31 Oct 2019 13:12:12 +0000 Subject: [PATCH] Add guard to allow changing Skia's YUV -> RGB matrices The fixes to the Rec.601 and Rec.709 matrices affect a handful of layout tests. See also: https://skia-review.googlesource.com/c/skia/+/251771/ Bug: skia:9543 Change-Id: Ia6ffa7742e945348bc7af68d6c2214fd66a50a96 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1890956 Auto-Submit: Brian Osman Reviewed-by: Robert Phillips Commit-Queue: Brian Osman Cr-Commit-Position: refs/heads/master@{#711225} --- skia/config/SkUserConfig.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/skia/config/SkUserConfig.h b/skia/config/SkUserConfig.h index 94e9588a9b1ee9..45f411279c383e 100644 --- a/skia/config/SkUserConfig.h +++ b/skia/config/SkUserConfig.h @@ -222,6 +222,10 @@ SK_API void SkDebugf_FileLine(const char* file, #define SK_SUPPORT_LEGACY_AAA_CHOICE #endif +#ifndef SK_LEGACY_YUV_MATRICES +#define SK_LEGACY_YUV_MATRICES +#endif + // We're turning this off indefinitely, // until we can figure out some fundamental problems with its approach. //