Lines Matching refs:fPtr
38 T *fPtr;
41 constexpr SkTScopedComPtr() : fPtr(nullptr) {} in SkTScopedComPtr()
42 constexpr SkTScopedComPtr(std::nullptr_t) : fPtr(nullptr) {} in SkTScopedComPtr()
43 explicit SkTScopedComPtr(T *ptr) : fPtr(ptr) {} in SkTScopedComPtr()
44 SkTScopedComPtr(SkTScopedComPtr&& that) : fPtr(that.release()) {} in SkTScopedComPtr()
56 T &operator*() const { SkASSERT(fPtr != nullptr); return *fPtr; }
58 explicit operator bool() const { return fPtr != nullptr; }
60 SkBlockComRef<T> *operator->() const { return static_cast<SkBlockComRef<T>*>(fPtr); }
68 T **operator&() { SkASSERT(fPtr == nullptr); return &fPtr; }
70 T *get() const { return fPtr; } in get()
73 if (fPtr) {
74 fPtr->Release();
76 fPtr = ptr;
80 T* temp = this->fPtr; in swap()
81 this->fPtr = that.fPtr; in swap()
82 that.fPtr = temp; in swap()
86 T* temp = this->fPtr; in release()
87 this->fPtr = nullptr; in release()