Lines Matching refs:mSurface
35 explicit ScopedIOSurfaceRef(IOSurfaceRef surface) : mSurface(surface) {} in ScopedIOSurfaceRef()
39 if (mSurface != nullptr) in ~ScopedIOSurfaceRef()
41 CFRelease(mSurface); in ~ScopedIOSurfaceRef()
42 mSurface = nullptr; in ~ScopedIOSurfaceRef()
46 IOSurfaceRef get() const { return mSurface; } in get()
50 if (mSurface != nullptr) in ScopedIOSurfaceRef()
52 CFRelease(mSurface); in ScopedIOSurfaceRef()
54 mSurface = other.mSurface; in ScopedIOSurfaceRef()
55 other.mSurface = nullptr; in ScopedIOSurfaceRef()
60 if (mSurface != nullptr) in operator =()
62 CFRelease(mSurface); in operator =()
64 mSurface = other.mSurface; in operator =()
65 other.mSurface = nullptr; in operator =()
71 IOSurfaceRef mSurface = nullptr; member in __anonc72a8c470111::ScopedIOSurfaceRef