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