Lines Matching refs:Gralloc2
35 #include <ui/Gralloc2.h>
46 Gralloc2::Mapper::preload();
50 : mMapper(std::make_unique<const Gralloc2::Mapper>())
62 Gralloc2::Error error = mMapper->importBuffer(
64 if (error != Gralloc2::Error::NONE) {
69 Gralloc2::IMapper::BufferDescriptorInfo info = {};
73 info.format = static_cast<Gralloc2::PixelFormat>(format);
77 if (error != Gralloc2::Error::NONE) {
103 static inline Gralloc2::IMapper::Rect asGralloc2Rect(const Rect& rect) {
104 Gralloc2::IMapper::Rect outRect{};
149 Gralloc2::Error error = mMapper->lock(handle, usage,
152 ALOGW_IF(error != Gralloc2::Error::NONE, "lock(%p, ...) failed: %d",
163 Gralloc2::YCbCrLayout layout;
164 Gralloc2::Error error = mMapper->lock(handle, usage,
166 if (error == Gralloc2::Error::NONE) {