Home
last modified time | relevance | path

Searched refs:RetainPolicy (Results 1 – 3 of 3) sorted by relevance

/external/webrtc/sdk/objc/helpers/
Dscoped_cftyperef.h22 enum class RetainPolicy { RETAIN, ASSUME }; enum
40 ScopedTypeRef(T ptr, RetainPolicy policy) : ScopedTypeRef(ptr) { in ScopedTypeRef()
41 if (ptr_ && policy == RetainPolicy::RETAIN) in ScopedTypeRef()
70 reset(rhs.get(), RetainPolicy::RETAIN);
81 void reset(T ptr, RetainPolicy policy = RetainPolicy::ASSUME) {
82 if (ptr && policy == RetainPolicy::RETAIN)
106 return ScopedCFTypeRef<T>(cftype, RetainPolicy::RETAIN); in AdoptCF()
/external/webrtc/sdk/objc/unittests/
Dscoped_cftyperef_tests.mm51 ScopedTestType ref(&a, rtc::RetainPolicy::RETAIN);
59 ScopedTestType ref(&a, rtc::RetainPolicy::RETAIN);
69 ScopedTestType ref1(&a, rtc::RetainPolicy::RETAIN);
81 ScopedTestType ref(&a, rtc::RetainPolicy::RETAIN);
/external/webrtc/modules/desktop_capture/mac/
Dscreen_capturer_mac.mm537 display_id, rtc::ScopedCFTypeRef<IOSurfaceRef>(io_surface, rtc::RetainPolicy::RETAIN));