19 #ifndef MIR_GRAPHICS_ANDROID_ANDROID_NATIVE_BUFFER_H_
20 #define MIR_GRAPHICS_ANDROID_ANDROID_NATIVE_BUFFER_H_
37 std::shared_ptr<ANativeWindowBuffer>
const&
handle,
38 std::shared_ptr<Fence>
const& fence,
41 ANativeWindowBuffer*
anwb()
const;
42 buffer_handle_t
handle()
const;
49 std::shared_ptr<Fence> fence;
51 std::shared_ptr<ANativeWindowBuffer> native_window_buffer;
64 std::shared_ptr<const native_handle_t>
const handle_resource;
68 int driver_references;
All things Mir.
Definition: buffer_stream.h:37
BufferAccess
Definition: native_buffer.h:37
NativeFence copy_fence() const
Definition: android_native_buffer.cpp:57
Definition: android_native_buffer.h:54
void ensure_available_for(BufferAccess)
Definition: android_native_buffer.cpp:33
ANativeWindowBuffer * anwb() const
Definition: android_native_buffer.cpp:47
Definition: native_buffer.h:44
void update_usage(NativeFence &merge_fd, BufferAccess)
Definition: android_native_buffer.cpp:41
RefCountedNativeBuffer(std::shared_ptr< const native_handle_t > const &handle)
Definition: refcounted_buffer.cpp:65
Definition: android_native_buffer.h:34
int NativeFence
Definition: fence.h:30
void driver_reference()
Definition: refcounted_buffer.cpp:37
buffer_handle_t handle() const
Definition: android_native_buffer.cpp:52
void mir_dereference()
Definition: refcounted_buffer.cpp:54
AndroidNativeBuffer(std::shared_ptr< ANativeWindowBuffer > const &handle, std::shared_ptr< Fence > const &fence, BufferAccess fence_access)
Definition: android_native_buffer.cpp:23
Definition: android_input_receiver.h:32
void driver_dereference()
Definition: refcounted_buffer.cpp:43