20 #ifndef MIR_CLIENT_ANDROID_ANDROID_REGISTRAR_GRALLOC_H_
21 #define MIR_CLIENT_ANDROID_ANDROID_REGISTRAR_GRALLOC_H_
25 #include <hardware/gralloc.h>
34 class AndroidRegistrarGralloc :
public AndroidRegistrar
37 AndroidRegistrarGralloc(
const std::shared_ptr<const gralloc_module_t>& gralloc_dev);
39 std::shared_ptr<const native_handle_t> register_buffer(
40 std::shared_ptr<MirBufferPackage>
const& package)
const;
41 std::shared_ptr<char> secure_for_cpu(std::shared_ptr<const native_handle_t> handle,
const geometry::Rectangle);
44 std::shared_ptr<const gralloc_module_t> gralloc_module;