Home
last modified time | relevance | path

Searched refs:gr_sp (Results 1 – 1 of 1) sorted by relevance

/external/skia/src/gpu/
DGrRefCnt.h17 template <typename T, auto Ref, auto Unref> class gr_sp {
35 constexpr gr_sp() : fPtr(nullptr) {} in gr_sp() function
36 constexpr gr_sp(std::nullptr_t) : fPtr(nullptr) {} in gr_sp() function
42 gr_sp(const gr_sp<T, Ref, Unref>& that) : fPtr(SafeRef(that.get())) {} in gr_sp() function
45 gr_sp(const gr_sp<U, Ref, Unref>& that) : fPtr(SafeRef(that.get())) {} in gr_sp() function
47 gr_sp(const sk_sp<T>& that) : fPtr(SafeRef(that.get())) {} in gr_sp() function
55 gr_sp(gr_sp<T, Ref, Unref>&& that) : fPtr(that.release()) {} in gr_sp() function
61 gr_sp(sk_sp<T>&& that) : fPtr(SafeRef(that.get())) {} in gr_sp() function
67 explicit gr_sp(T* obj) : fPtr(obj) {} in gr_sp() function
72 ~gr_sp() { in ~gr_sp()
[all …]