summaryrefslogtreecommitdiff
path: root/chromium/third_party/skia/gm/p3.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/skia/gm/p3.cpp')
-rw-r--r--chromium/third_party/skia/gm/p3.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/chromium/third_party/skia/gm/p3.cpp b/chromium/third_party/skia/gm/p3.cpp
index 9b78a970cdd..e14ceea5eaf 100644
--- a/chromium/third_party/skia/gm/p3.cpp
+++ b/chromium/third_party/skia/gm/p3.cpp
@@ -202,7 +202,7 @@ DEF_SIMPLE_GM(p3, canvas, 450, 1300) {
SkPaint paint;
paint.setShader(SkGradientShader::MakeLinear(points, colors, p3,
- nullptr, SK_ARRAY_COUNT(colors),
+ nullptr, std::size(colors),
SkTileMode::kClamp));
canvas->drawRect({10,10,70,70}, paint);
canvas->save();
@@ -229,7 +229,7 @@ DEF_SIMPLE_GM(p3, canvas, 450, 1300) {
SkPaint paint;
paint.setShader(
SkGradientShader::MakeLinear(points, colors, p3,
- nullptr, SK_ARRAY_COUNT(colors),
+ nullptr, std::size(colors),
SkTileMode::kClamp,
SkGradientShader::kInterpolateColorsInPremul_Flag,
nullptr/*local matrix*/));
@@ -257,7 +257,7 @@ DEF_SIMPLE_GM(p3, canvas, 450, 1300) {
SkPaint paint;
paint.setShader(SkGradientShader::MakeLinear(points, colors, srgb,
- nullptr, SK_ARRAY_COUNT(colors),
+ nullptr, std::size(colors),
SkTileMode::kClamp));
canvas->drawRect({10,10,70,70}, paint);
canvas->save();
@@ -284,7 +284,7 @@ DEF_SIMPLE_GM(p3, canvas, 450, 1300) {
SkPaint paint;
paint.setShader(
SkGradientShader::MakeLinear(points, colors, srgb,
- nullptr, SK_ARRAY_COUNT(colors),
+ nullptr, std::size(colors),
SkTileMode::kClamp,
SkGradientShader::kInterpolateColorsInPremul_Flag,
nullptr/*local matrix*/));
@@ -312,7 +312,7 @@ DEF_SIMPLE_GM(p3, canvas, 450, 1300) {
SkPaint paint;
paint.setShader(
SkGradientShader::MakeLinear(points, colors, p3,
- nullptr, SK_ARRAY_COUNT(colors),
+ nullptr, std::size(colors),
SkTileMode::kClamp,
SkGradientShader::kInterpolateColorsInPremul_Flag,
nullptr/*local matrix*/));