blurrect_compare GM: draw "masks" in white for RGBA fallback.
Change-Id: I569fd550dbdd3fcff5e879f68a919da92421513a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/242477
Auto-Submit: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
diff --git a/gm/blurrect.cpp b/gm/blurrect.cpp
index f65a76d..4d30c98 100644
--- a/gm/blurrect.cpp
+++ b/gm/blurrect.cpp
@@ -421,6 +421,9 @@
}
auto rect = SkRect::MakeXYWH(pad, pad, w, h);
SkPaint paint;
+ // Color doesn't matter if we're rendering to A8 but does if we promoted to
+ // RGBA above.
+ paint.setColor(SK_ColorWHITE);
paint.setMaskFilter(SkMaskFilter::MakeBlur(kNormal_SkBlurStyle, sigma));
surf->getCanvas()->drawRect(rect, paint);
fActualMasks[sigmaIdx][heightIdx][widthIdx] = surf->makeImageSnapshot();