Lines Matching defs:const

49     bool unique() const {
61 void ref() const {
71 void unref() const {
85 int32_t getRefCnt() const {
93 virtual void internal_dispose() const {
108 SkRefCntBase(const SkRefCntBase&) = delete;
110 SkRefCntBase& operator=(const SkRefCntBase&) = delete;
122 void deref() const { this->unref(); }
174 bool unique() const { return 1 == fRefCnt.load(std::memory_order_acquire); }
175 void ref() const { (void)fRefCnt.fetch_add(+1, std::memory_order_relaxed); }
176 void unref() const {
180 delete (const Derived*)this;
183 void deref() const { this->unref(); }
190 bool refCntGreaterThan(int32_t threadIsolatedTestCnt) const {
201 SkNVRefCnt(const SkNVRefCnt&) = delete;
203 SkNVRefCnt& operator=(const SkNVRefCnt&) = delete;
226 sk_sp(const sk_sp<T>& that) : fPtr(SkSafeRef(that.get())) {}
229 sk_sp(const sk_sp<U>& that) : fPtr(SkSafeRef(that.get())) {}
262 sk_sp<T>& operator=(const sk_sp<T>& that) {
270 sk_sp<T>& operator=(const sk_sp<U>& that) {
291 T& operator*() const {
296 explicit operator bool() const { return this->get() != nullptr; }
298 T* get() const { return fPtr; }
299 T* operator->() const { return fPtr; }
338 template <typename T, typename U> inline bool operator==(const sk_sp<T>& a, const sk_sp<U>& b) {
341 template <typename T> inline bool operator==(const sk_sp<T>& a, std::nullptr_t) /*noexcept*/ {
344 template <typename T> inline bool operator==(std::nullptr_t, const sk_sp<T>& b) /*noexcept*/ {
348 template <typename T, typename U> inline bool operator!=(const sk_sp<T>& a, const sk_sp<U>& b) {
351 template <typename T> inline bool operator!=(const sk_sp<T>& a, std::nullptr_t) /*noexcept*/ {
354 template <typename T> inline bool operator!=(std::nullptr_t, const sk_sp<T>& b) /*noexcept*/ {
359 auto operator<<(std::basic_ostream<C, CT>& os, const sk_sp<T>& sp) -> decltype(os << sp.get()) {
378 template <typename T> sk_sp<T> sk_ref_sp(const T* obj) {