From fafe135349bd34961a12bfd8185733709cd0e45e Mon Sep 17 00:00:00 2001 From: Hal Canary Date: Tue, 11 Apr 2017 12:12:02 -0400 Subject: SkSize can be aggregate-initialized Previosly, SkSize had a base class, which prevented it. Also removes unused SkISize::clampNegToZero() and SkSize::clampNegToZero(). Change-Id: I7b93b42f6f6381c66e294bbedee99ad53c6c3436 Reviewed-on: https://skia-review.googlesource.com/13187 Reviewed-by: Ben Wagner Commit-Queue: Hal Canary --- gm/ninepatchstretch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gm/ninepatchstretch.cpp') diff --git a/gm/ninepatchstretch.cpp b/gm/ninepatchstretch.cpp index 4c6e7d2742..90a02161ef 100644 --- a/gm/ninepatchstretch.cpp +++ b/gm/ninepatchstretch.cpp @@ -78,7 +78,7 @@ protected: // amount of bm that should not be stretched (unless we have to) const SkScalar fixed = SkIntToScalar(fBitmap.width() - fCenter.width()); - const SkTSize size[] = { + const SkSize size[] = { { fixed * 4 / 5, fixed * 4 / 5 }, // shrink in both axes { fixed * 4 / 5, fixed * 4 }, // shrink in X { fixed * 4, fixed * 4 / 5 }, // shrink in Y -- cgit v1.2.3