Skip to content

Commit

Permalink
remote tilemode count check, so Skia can add another one (flutter#4692)
Browse files Browse the repository at this point in the history
  • Loading branch information
reed-at-google authored and brianosman committed Feb 20, 2018
1 parent d0160df commit 85a7d60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ui/painting/gradient.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 85a7d60

Please sign in to comment.