Lines Matching refs:that
4 * Use of this source code is governed by a BSD-style license that can be
46 * Shares the underlying object by calling Ref(), so that both the argument and the newly
49 gr_sp(const gr_sp& that) : fPtr(SafeRef(that.get())) {}
54 gr_sp(const gr_sp<U, URefBase, UUnrefBase, Ref, Unref>& that) : fPtr(SafeRef(that.get())) {}
56 gr_sp(const sk_sp<T>& that) : fPtr(SafeRef(that.get())) {}
64 gr_sp(gr_sp&& that) : fPtr(that.release()) {}
70 gr_sp(sk_sp<T>&& that) : fPtr(SafeRef(that.get())) {}
93 * previously had a reference to an object (i.e. not null) it will call Unref() on that object.
95 gr_sp& operator=(const gr_sp& that) {
96 if (this != &that) {
97 this->reset(SafeRef(that.get()));
104 * held a reference to another object, Unref() will be called on that object. It will then call
107 gr_sp& operator=(const sk_sp<T>& that) {
108 this->reset(SafeRef(that.get()));
114 * a reference to another object, Unref() will be called on that object. No call to Ref() will
117 gr_sp& operator=(gr_sp&& that) {
118 this->reset(that.release());
124 * held a reference to another object, Unref() will be called on that object. It will then call
127 gr_sp& operator=(sk_sp<T>&& that) {
128 this->reset(SafeRef(that.get()));
170 * Shared pointer class to wrap classes that support a addCommandBufferUsage() and
176 * This class is designed to be used by GrGpuResources that need to track when they are in use on