Lines Matching refs:bufferHandle
40 for (auto bufferHandle : mClonedBuffers) { in ~Gralloc() local
41 auto buffer = const_cast<native_handle_t*>(bufferHandle); in ~Gralloc()
47 for (auto bufferHandle : mImportedBuffers) { in ~Gralloc() local
48 auto buffer = const_cast<native_handle_t*>(bufferHandle); in ~Gralloc()
66 const native_handle_t* bufferHandle = native_handle_clone(rawHandle.getNativeHandle()); in cloneBuffer() local
67 EXPECT_NE(nullptr, bufferHandle); in cloneBuffer()
69 if (bufferHandle) { in cloneBuffer()
70 mClonedBuffers.insert(bufferHandle); in cloneBuffer()
73 return bufferHandle; in cloneBuffer()
137 const native_handle_t* bufferHandle = nullptr; in importBuffer() local
141 bufferHandle = static_cast<const native_handle_t*>(tmpBuffer); in importBuffer()
144 if (bufferHandle) { in importBuffer()
145 mImportedBuffers.insert(bufferHandle); in importBuffer()
148 return bufferHandle; in importBuffer()
151 void Gralloc::freeBuffer(const native_handle_t* bufferHandle) { in freeBuffer() argument
152 auto buffer = const_cast<native_handle_t*>(bufferHandle); in freeBuffer()
154 if (mImportedBuffers.erase(bufferHandle)) { in freeBuffer()
158 mClonedBuffers.erase(bufferHandle); in freeBuffer()
164 void* Gralloc::lock(const native_handle_t* bufferHandle, uint64_t cpuUsage, in lock() argument
166 auto buffer = const_cast<native_handle_t*>(bufferHandle); in lock()
190 YCbCrLayout Gralloc::lockYCbCr(const native_handle_t* bufferHandle, uint64_t cpuUsage, in lockYCbCr() argument
192 auto buffer = const_cast<native_handle_t*>(bufferHandle); in lockYCbCr()
217 int Gralloc::unlock(const native_handle_t* bufferHandle) { in unlock() argument
218 auto buffer = const_cast<native_handle_t*>(bufferHandle); in unlock()