From 5d26fdffeb85bd3c550b6f320648c65edb582ee8 Mon Sep 17 00:00:00 2001 From: reed-at-google Date: Tue, 20 Feb 2018 14:05:08 -0500 Subject: [PATCH] remote tilemode count check, so Skia can add another one (flutter/engine#4692) --- engine/src/flutter/lib/ui/painting/gradient.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/src/flutter/lib/ui/painting/gradient.h b/engine/src/flutter/lib/ui/painting/gradient.h index 788552cee1f..94a55a57acc 100644 --- a/engine/src/flutter/lib/ui/painting/gradient.h +++ b/engine/src/flutter/lib/ui/painting/gradient.h @@ -17,7 +17,8 @@ class DartLibraryNatives; namespace blink { -static_assert(SkShader::kTileModeCount == 3, "Need to update tile mode enum"); +// TODO: update this if/when Skia adds Decal mode skbug.com/7638 +static_assert(SkShader::kTileModeCount >= 3, "Need to update tile mode enum"); class CanvasGradient : public Shader { DEFINE_WRAPPERTYPEINFO();