Lines Matching refs:mBuffer
60 if (mBuffer.memHandle) { in forceShutdown()
68 alloc.free(mBuffer.memHandle); in forceShutdown()
69 mBuffer.memHandle = nullptr; in forceShutdown()
167 if (!mBuffer.memHandle) { in getTargetBuffer()
181 mBuffer.width = mGlWrapper.getWidth(); in getTargetBuffer()
182 mBuffer.height = mGlWrapper.getHeight(); in getTargetBuffer()
183 mBuffer.format = HAL_PIXEL_FORMAT_RGBA_8888; in getTargetBuffer()
184 mBuffer.usage = GRALLOC_USAGE_HW_RENDER | GRALLOC_USAGE_HW_COMPOSER; in getTargetBuffer()
185 mBuffer.bufferId = 0x3870; // Arbitrary magic number for self recognition in getTargetBuffer()
186 mBuffer.pixelSize = 4; in getTargetBuffer()
191 status_t result = alloc.allocate(mBuffer.width, mBuffer.height, in getTargetBuffer()
192 mBuffer.format, 1, in getTargetBuffer()
193 mBuffer.usage, &handle, in getTargetBuffer()
194 &mBuffer.stride, in getTargetBuffer()
198 result, mBuffer.width, mBuffer.height); in getTargetBuffer()
212 mBuffer.memHandle = handle; in getTargetBuffer()
214 mBuffer.memHandle.getNativeHandle(), mBuffer.stride); in getTargetBuffer()
234 mBuffer.memHandle.getNativeHandle(), mBuffer.bufferId); in getTargetBuffer()
235 _hidl_cb(mBuffer); in getTargetBuffer()
254 if (buffer.bufferId != mBuffer.bufferId) { in returnTargetBufferForDisplay()
284 if (!mGlWrapper.updateImageTexture(mBuffer)) { in returnTargetBufferForDisplay()