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

Unified Diff: include/core/SkRefCnt.h

Issue 2041113004: sk_sp for gpu. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Make it run. Created 4 years, 6 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
Index: include/core/SkRefCnt.h
diff --git a/include/core/SkRefCnt.h b/include/core/SkRefCnt.h
index c45ed6bbf06f0d261f6efde6b696da538166b0dd..3227e6874066f7f60fdfd4536df8b6cba153e087 100644
--- a/include/core/SkRefCnt.h
+++ b/include/core/SkRefCnt.h
@@ -264,8 +264,8 @@ template <typename T> class sk_sp {
public:
using element_type = T;
- sk_sp() : fPtr(nullptr) {}
- sk_sp(std::nullptr_t) : fPtr(nullptr) {}
+ constexpr sk_sp() : fPtr(nullptr) {}
+ constexpr sk_sp(std::nullptr_t) : fPtr(nullptr) {}
bungeman-skia 2016/06/08 18:22:16 This allows sk_sp<T>() to be a compile time static
bsalomon 2016/06/08 19:50:50 w00t
/**
* Shares the underlying object by calling ref(), so that both the argument and the newly

Powered by Google App Engine
This is Rietveld 408576698