Lines Matching refs:mBuffer
62 if (mBuffer.memHandle) { in forceShutdown()
70 alloc.free(mBuffer.memHandle); in forceShutdown()
71 mBuffer.memHandle = nullptr; in forceShutdown()
165 if (!mBuffer.memHandle) { in getTargetBuffer()
178 mBuffer.width = mGlWrapper.getWidth(); in getTargetBuffer()
179 mBuffer.height = mGlWrapper.getHeight(); in getTargetBuffer()
180 mBuffer.format = HAL_PIXEL_FORMAT_RGBA_8888; in getTargetBuffer()
181 mBuffer.usage = GRALLOC_USAGE_HW_RENDER | GRALLOC_USAGE_HW_COMPOSER; in getTargetBuffer()
182 mBuffer.bufferId = 0x3870; // Arbitrary magic number for self recognition in getTargetBuffer()
183 mBuffer.pixelSize = 4; in getTargetBuffer()
189 alloc.allocate(mBuffer.width, mBuffer.height, mBuffer.format, 1, mBuffer.usage, in getTargetBuffer()
190 &handle, &mBuffer.stride, 0, "EvsGlDisplay"); in getTargetBuffer()
192 LOG(ERROR) << "Error " << result << " allocating " << mBuffer.width << " x " in getTargetBuffer()
193 << mBuffer.height << " graphics buffer."; in getTargetBuffer()
205 mBuffer.memHandle = handle; in getTargetBuffer()
206 LOG(DEBUG) << "Allocated new buffer " << mBuffer.memHandle.getNativeHandle() in getTargetBuffer()
207 << " with stride " << mBuffer.stride; in getTargetBuffer()
225 LOG(VERBOSE) << "Providing display buffer handle " << mBuffer.memHandle.getNativeHandle() in getTargetBuffer()
226 << " as id " << mBuffer.bufferId; in getTargetBuffer()
227 _hidl_cb(mBuffer); in getTargetBuffer()
245 if (buffer.bufferId != mBuffer.bufferId) { in returnTargetBufferForDisplay()
275 if (!mGlWrapper.updateImageTexture(mBuffer)) { in returnTargetBufferForDisplay()