We can do this now that we can write "constexpr".
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1936653002
Review-Url: https://codereview.chromium.org/
1936653002
class SkOnce {
public:
+ constexpr SkOnce() = default;
+
template <typename Fn, typename... Args>
void operator()(Fn&& fn, Args&&... args) {
auto state = fState.load(std::memory_order_acquire);
class SkSpinlock {
public:
+ constexpr SkSpinlock() = default;
+
void acquire() {
// To act as a mutex, we need an acquire barrier when we acquire the lock.
if (fLocked.exchange(true, std::memory_order_acquire)) {