Index: gm/colorcube.cpp |
diff --git a/gm/colorcube.cpp b/gm/colorcube.cpp |
index 54e0688c6ab279f0d55fc856e0bc5de25804bb91..dc183bc3ae9d01531a85bc69e5906fe647ab3311 100644 |
--- a/gm/colorcube.cpp |
+++ b/gm/colorcube.cpp |
@@ -14,11 +14,11 @@ |
namespace skiagm { |
static sk_sp<SkShader> MakeLinear() { |
- static const SkPoint pts[2] = { |
+ constexpr SkPoint pts[2] = { |
{ 0, 0 }, |
{ SkIntToScalar(80), SkIntToScalar(80) } |
}; |
- static const SkColor colors[] = { SK_ColorYELLOW, SK_ColorBLUE }; |
+ constexpr SkColor colors[] = { SK_ColorYELLOW, SK_ColorBLUE }; |
return SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kRepeat_TileMode, 0, |
&SkMatrix::I()); |
} |