Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(264)

Unified Diff: include/private/SkOnce.h

Issue 1936653002: Add reminders that these classes have constexpr default constructors. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | include/private/SkSpinlock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/private/SkOnce.h
diff --git a/include/private/SkOnce.h b/include/private/SkOnce.h
index 1c68fb7da1396771aa3bed37365b321111270dde..507dcb5b8cf14dfdbecef9e9da81e7eea0e90a51 100644
--- a/include/private/SkOnce.h
+++ b/include/private/SkOnce.h
@@ -19,6 +19,8 @@
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);
« no previous file with comments | « no previous file | include/private/SkSpinlock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698