SkSize can be aggregate-initialized
authorHal Canary <halcanary@google.com>
Tue, 11 Apr 2017 16:12:02 +0000 (12:12 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Tue, 11 Apr 2017 18:57:20 +0000 (18:57 +0000)
commitfafe135349bd34961a12bfd8185733709cd0e45e
treeb40dbd0a0787901843aba62eec1f21a1fe3936e1
parent8a8e5fe290307952f9b8df1eb680eed52d83eca9
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>
15 files changed:
bench/PathBench.cpp
dm/DMSrcSink.cpp
gm/lattice.cpp
gm/ninepatchstretch.cpp
include/core/SkSize.h
src/codec/SkAndroidCodec.cpp
src/core/SkBlurImageFilter.cpp
src/core/SkMaskCache.cpp
src/pdf/SkPDFDevice.cpp
src/pdf/SkPDFShader.cpp
src/utils/SkMultiPictureDocument.cpp
src/utils/SkShadowPaintFilterCanvas.cpp
src/xps/SkXPSDocument.cpp
tests/PathTest.cpp
tests/SizeTest.cpp