Lines Matching refs:rect
304 status_t GraphicBuffer::lock(uint32_t inUsage, const Rect& rect, void** vaddr, in lock() argument
306 if (rect.left < 0 || rect.right > width || in lock()
307 rect.top < 0 || rect.bottom > height) { in lock()
309 rect.left, rect.top, rect.right, rect.bottom, in lock()
314 return lockAsync(inUsage, rect, vaddr, -1, outBytesPerPixel, outBytesPerStride); in lock()
324 status_t GraphicBuffer::lockYCbCr(uint32_t inUsage, const Rect& rect, in lockYCbCr() argument
327 if (rect.left < 0 || rect.right > width || in lockYCbCr()
328 rect.top < 0 || rect.bottom > height) { in lockYCbCr()
330 rect.left, rect.top, rect.right, rect.bottom, in lockYCbCr()
334 return lockAsyncYCbCr(inUsage, rect, ycbcr, -1); in lockYCbCr()
350 status_t GraphicBuffer::lockAsync(uint32_t inUsage, const Rect& rect, void** vaddr, int fenceFd, in lockAsync() argument
352 return lockAsync(inUsage, inUsage, rect, vaddr, fenceFd, outBytesPerPixel, outBytesPerStride); in lockAsync()
356 const Rect& rect, void** vaddr, int fenceFd, in lockAsync() argument
358 if (rect.left < 0 || rect.right > width || in lockAsync()
359 rect.top < 0 || rect.bottom > height) { in lockAsync()
361 rect.left, rect.top, rect.right, rect.bottom, in lockAsync()
394 auto result = getBufferMapper().lock(handle, usage, rect, base::unique_fd{fenceFd}); in lockAsync()
419 status_t GraphicBuffer::lockAsyncYCbCr(uint32_t inUsage, const Rect& rect, in lockAsyncYCbCr() argument
422 if (rect.left < 0 || rect.right > width || in lockAsyncYCbCr()
423 rect.top < 0 || rect.bottom > height) { in lockAsyncYCbCr()
425 rect.left, rect.top, rect.right, rect.bottom, in lockAsyncYCbCr()
429 auto result = getBufferMapper().lockYCbCr(handle, static_cast<int64_t>(inUsage), rect, in lockAsyncYCbCr()