aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/lattice.cpp
diff options
context:
space:
mode:
authorGravatar Hal Canary <halcanary@google.com>2017-04-11 12:12:02 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-04-11 18:57:20 +0000
commitfafe135349bd34961a12bfd8185733709cd0e45e (patch)
treeb40dbd0a0787901843aba62eec1f21a1fe3936e1 /gm/lattice.cpp
parent8a8e5fe290307952f9b8df1eb680eed52d83eca9 (diff)
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 <bungeman@google.com> Commit-Queue: Hal Canary <halcanary@google.com>
Diffstat (limited to 'gm/lattice.cpp')
-rw-r--r--gm/lattice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/lattice.cpp b/gm/lattice.cpp
index 46c5a94989..55759d0cd8 100644
--- a/gm/lattice.cpp
+++ b/gm/lattice.cpp
@@ -107,7 +107,7 @@ protected:
padRight, padBottom);
image_to_bitmap(image.get(), &bitmap);
- const SkTSize<SkScalar> size[] = {
+ const SkSize size[] = {
{ 50, 50, }, // shrink in both axes
{ 50, 200, }, // shrink in X
{ 200, 50, }, // shrink in Y