aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Ben Wagner <bungeman@google.com>2018-04-17 11:16:32 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-04-17 16:10:14 +0000
commita580fb3f9ec5c177e4e8f827f6aa14239f984121 (patch)
tree744abe49ed4ee2590f4ff9cd83d81e7791ecfeae /include
parent3101f65d6b415618fc052f30b15b59731ee95e5a (diff)
Add paint flags to viewer GUI.
Overriding bits of the paint was added with keyboard bindings but without being reflected in the GUI. This adds these flags to the GUI. Change-Id: I633801fb776248952afe7cbe8857676ef8b57135 Reviewed-on: https://skia-review.googlesource.com/121796 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/private/SkTFitsIn.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/private/SkTFitsIn.h b/include/private/SkTFitsIn.h
index a889807360..09fa3449aa 100644
--- a/include/private/SkTFitsIn.h
+++ b/include/private/SkTFitsIn.h
@@ -204,7 +204,7 @@ template <typename D, typename S> constexpr inline bool SkTFitsIn(S s) {
using RealS = typename sktfitsin::Private::underlying_type<S>::type;
using RealD = typename sktfitsin::Private::underlying_type<D>::type;
- return sktfitsin::Private::SkTFitsIn<RealD, RealS>::type::fits(s);
+ return sktfitsin::Private::SkTFitsIn<RealD, RealS>::type::fits(static_cast<RealS>(s));
}
#endif