Searched refs:try_ref (Results 1 - 3 of 3) sorted by relevance

/external/skia/include/core/
H A DSkWeakRefCnt.h28 call try_ref(). If try_ref() returns true, the owner's pointer is now also
37 result, it is allowable for the owner of a strong ref to call try_ref().
44 if (myRef.try_ref()) {
82 caller must already be an owner. If try_ref() returns true the owner
84 reference and new reference must be properly unreferenced. If try_ref()
88 bool SK_WARN_UNUSED_RESULT try_ref() const { function in class:SkWeakRefCnt
128 is the case all future calls to try_ref() will return false.
/external/skia/src/core/
H A DSkTypefaceCache.cpp55 } else if (currFace->try_ref()) {
/external/skia/tests/
H A DRefCntTest.cpp104 if (ref->try_ref()) {

Completed in 90 milliseconds