From ec172aac2c41175582c15edf4d31460e0e6c244f Mon Sep 17 00:00:00 2001 From: Brian Osman Date: Mon, 9 Apr 2018 15:30:35 -0400 Subject: [PATCH] Remove SkDEBUGFAIL for non-invertible XYZ matrix We have a reasonable fallback for this (extremely unlikely) scenario. Bug: chromium:819192 Change-Id: I7a9a28c067fb029fd1000e1eeb488ede688fc3b2 Reviewed-on: https://skia-review.googlesource.com/119945 Reviewed-by: Mike Klein Commit-Queue: Brian Osman --- src/core/SkColorSpace_XYZ.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/core/SkColorSpace_XYZ.cpp b/src/core/SkColorSpace_XYZ.cpp index adfe3f6608..17462a117a 100644 --- a/src/core/SkColorSpace_XYZ.cpp +++ b/src/core/SkColorSpace_XYZ.cpp @@ -42,7 +42,6 @@ const SkMatrix44* SkColorSpace_XYZ::onFromXYZD50() const { if (!fToXYZD50.invert(&fFromXYZD50)) { // If a client gives us a dst gamut with a transform that we can't invert, we will // simply give them back a transform to sRGB gamut. - SkDEBUGFAIL("Non-invertible XYZ matrix, defaulting to sRGB"); SkMatrix44 srgbToxyzD50(SkMatrix44::kUninitialized_Constructor); srgbToxyzD50.set3x3RowMajorf(gSRGB_toXYZD50); srgbToxyzD50.invert(&fFromXYZD50);