commit | dcc8960bc2b91ffe7a5a695827d0cfbe6af7b14b | [log] [tgz] |
---|---|---|
author | Mike Klein <mtklein@google.com> | Wed Dec 02 15:06:15 2020 -0600 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Wed Dec 02 22:15:58 2020 +0000 |
tree | 097e5c5b7cb1d5d545a4b3786fcf25fbd1b2de33 | |
parent | 07bc9a27f564d36060a9ccd191cde93407cb0f2b [diff] |
make SkSamplingOptions fields const This lets us trust the invariants that the constructors set up, like if fUseCubic, then fMipmap == SkMipmapMode::kNone. Gotta be slightly sneaky and implement operator= ourselves with placement new. Change-Id: I043cd56cbf9f1e2fa64ab585268b2799df65c31f Reviewed-on: https://skia-review.googlesource.com/c/skia/+/340179 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Mike Klein <mtklein@google.com>