From 3c2d09f89ae119de506722f550a6e28305d4813f Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Mon, 28 Aug 2017 13:32:37 -0400 Subject: change SkRect::growToInclude to take a point instead of x,y This avoids the dangerous overload problem of growToInclude(0, 0) matching to (const SkPoint[], count) rather than growToInclude(x, y) Bug: skia: Change-Id: Iaba8b1a579638ff363fde62e4e3004052dd2b2ac Reviewed-on: https://skia-review.googlesource.com/39501 Reviewed-by: Ben Wagner Commit-Queue: Mike Reed --- tools/debugger/SkDrawCommand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/debugger') diff --git a/tools/debugger/SkDrawCommand.cpp b/tools/debugger/SkDrawCommand.cpp index 8cee07f783..3e05da0572 100644 --- a/tools/debugger/SkDrawCommand.cpp +++ b/tools/debugger/SkDrawCommand.cpp @@ -2741,7 +2741,7 @@ bool SkDrawPointsCommand::render(SkCanvas* canvas) const { bounds.setEmpty(); for (unsigned int i = 0; i < fCount; ++i) { - bounds.growToInclude(fPts[i].fX, fPts[i].fY); + bounds.growToInclude(fPts[i]); } xlate_and_scale_to_bounds(canvas, bounds); -- cgit v1.2.3