Searched refs:gr_sp (Results 1 – 1 of 1) sorted by relevance
17 template <typename T, auto Ref, auto Unref> class gr_sp {35 constexpr gr_sp() : fPtr(nullptr) {} in gr_sp() function36 constexpr gr_sp(std::nullptr_t) : fPtr(nullptr) {} in gr_sp() function42 gr_sp(const gr_sp<T, Ref, Unref>& that) : fPtr(SafeRef(that.get())) {} in gr_sp() function45 gr_sp(const gr_sp<U, Ref, Unref>& that) : fPtr(SafeRef(that.get())) {} in gr_sp() function47 gr_sp(const sk_sp<T>& that) : fPtr(SafeRef(that.get())) {} in gr_sp() function55 gr_sp(gr_sp<T, Ref, Unref>&& that) : fPtr(that.release()) {} in gr_sp() function61 gr_sp(sk_sp<T>&& that) : fPtr(SafeRef(that.get())) {} in gr_sp() function67 explicit gr_sp(T* obj) : fPtr(obj) {} in gr_sp() function72 ~gr_sp() { in ~gr_sp()[all …]