commit | 0500ebafec1879a7c5f76fe40ee30bdab17ac3db | [log] [tgz] |
---|---|---|
author | Ben Wagner <bungeman@google.com> | Mon Jul 31 15:41:14 2017 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Mon Jul 31 20:24:47 2017 +0000 |
tree | 09c6bb735ae81e3ebc16f64eadc6d46209182350 | |
parent | 49f58a3825ca7f7745d7f311baa2b65c5eb46c02 [diff] |
Remove union from SkFontStyle. This is prompted by a bug in vc++ reported at https://developercommunity.visualstudio.com/content/problem/86829/constexpr-initializing-struct-in-union-only-zero-i.html Visual C++ will not properly constexpr initialize a struct inside a union. Removing this construct also allows us to avoid writing and reading from different members of a union. Change-Id: I76e069ecce77ef21b7ad3821bf9c29e1b0843618 Reviewed-on: https://skia-review.googlesource.com/28300 Commit-Queue: Mike Klein <mtklein@chromium.org> Reviewed-by: Brian Salomon <bsalomon@google.com> Reviewed-by: Mike Klein <mtklein@chromium.org>