Fix lazy coding in ViaSingletonPictures.
I was using SkRect::MakeLargest() as bounds, which is sort of nutso,
as that clearly is way out of bounds for how big a picture can feasibly
be, i.e. something closer to SkIRect::MakeLargest().
This was causing spurious quick rejects in drawPatch(). I didn't really
look much deeper to figure out why. It's easy enough to just feed it the
proper bounds of the entire content.
This means patch_primitive draws correctly in sp-8888 mode.
I also noticed the GM was too small... it clipped off most of its content.
So I've made it larger.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1865143002
Review URL: https://codereview.chromium.org/1865143002
diff --git a/gm/patch.cpp b/gm/patch.cpp
index 40eb46f..6b2d298 100644
--- a/gm/patch.cpp
+++ b/gm/patch.cpp
@@ -63,7 +63,7 @@
canvas->drawPoints(SkCanvas::kPoints_PointMode, 2, right + 1, paint);
}
-DEF_SIMPLE_GM(patch_primitive, canvas, 800, 800) {
+DEF_SIMPLE_GM(patch_primitive, canvas, 1500, 1100) {
SkPaint paint;
// The order of the colors and points is clockwise starting at upper-left corner.