Lines Matching defs:gbuffer
64 sp<GraphicBuffer> gbuffer(new GraphicBuffer(
68 status_t err = gbuffer->initCheck();
69 if (err != 0 || gbuffer->handle == 0) {
74 desc->width, desc->height, desc->layers, strerror(-err), gbuffer->handle);
78 *outBuffer = AHardwareBuffer_from_GraphicBuffer(gbuffer.get());
99 const GraphicBuffer* gbuffer = AHardwareBuffer_to_GraphicBuffer(buffer);
101 outDesc->width = gbuffer->getWidth();
102 outDesc->height = gbuffer->getHeight();
103 outDesc->layers = gbuffer->getLayerCount();
104 outDesc->format = AHardwareBuffer_convertFromPixelFormat(uint32_t(gbuffer->getPixelFormat()));
105 outDesc->usage = AHardwareBuffer_convertFromGrallocUsageBits(gbuffer->getUsage());
106 outDesc->stride = gbuffer->getStride();
123 GraphicBuffer* gBuffer = AHardwareBuffer_to_GraphicBuffer(buffer);
126 bounds.set(Rect(gBuffer->getWidth(), gBuffer->getHeight()));
130 return gBuffer->lockAsync(usage, usage, bounds, outVirtualAddress, fence);
136 GraphicBuffer* gBuffer = AHardwareBuffer_to_GraphicBuffer(buffer);
138 return gBuffer->unlock();
140 return gBuffer->unlockAsync(fence);
145 const GraphicBuffer* gBuffer = AHardwareBuffer_to_GraphicBuffer(buffer);
147 size_t flattenedSize = gBuffer->getFlattenedSize();
148 size_t fdCount = gBuffer->getFdCount();
159 status_t err = gBuffer->flatten(dataStart, flattenedSizeCopy, fdsStart,
258 GraphicBuffer* gBuffer = new GraphicBuffer();
259 status_t err = gBuffer->unflatten(data, dataLen, fdData, fdCount);
263 *outBuffer = AHardwareBuffer_from_GraphicBuffer(gBuffer);
278 const GraphicBuffer* gbuffer = AHardwareBuffer_to_GraphicBuffer(buffer);
279 return gbuffer->handle;