Lines Matching defs:SkTScopedComPtr
29 class SkTScopedComPtr {
34 constexpr SkTScopedComPtr() : fPtr(nullptr) {}
35 constexpr SkTScopedComPtr(std::nullptr_t) : fPtr(nullptr) {}
36 explicit SkTScopedComPtr(T *ptr) : fPtr(ptr) {}
37 SkTScopedComPtr(SkTScopedComPtr&& that) : fPtr(that.release()) {}
38 SkTScopedComPtr(const SkTScopedComPtr&) = delete;
40 ~SkTScopedComPtr() { this->reset();}
42 SkTScopedComPtr& operator=(SkTScopedComPtr&& that) {
46 SkTScopedComPtr& operator=(const SkTScopedComPtr&) = delete;
47 SkTScopedComPtr& operator=(std::nullptr_t) { this->reset(); return *this; }
72 void swap(SkTScopedComPtr<T>& that) {