6c630f2ce6
This was motivated by SkScalerContextFlags putting `kNone` into the global namespace. Instead of adding a suffix, change these internal enums to be scoped and update the users. Because SkScalerContextFlags is used like a bitfield, `SK_MAKE_BITFIELD_OPS` is used to provide the appropriate operators. The macro implementation is updated to handle scoped enums, remove the very dangerous, unwanted, and unused templated operators, and add operator~ since that is needed by one existing user. Also, for some reason this allows the compiler to find an unused field which is removed. Change-Id: Id31c80b381bffaf9b623f6a8ec7d86751d3d99f0 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/517616 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Ben Wagner <bungeman@google.com> |
||
---|---|---|
.. | ||
android | ||
c | ||
codec | ||
config | ||
core | ||
docs | ||
effects | ||
encode | ||
gpu | ||
pathops | ||
ports | ||
private | ||
sksl | ||
svg | ||
third_party | ||
utils | ||
OWNERS |