20 #ifndef MIR_GRAPHICS_ANDROID_BUFFER_H_
21 #define MIR_GRAPHICS_ANDROID_BUFFER_H_
27 #include <condition_variable>
30 #define GL_GLEXT_PROTOTYPES
31 #define EGL_EGLEXT_PROTOTYPES
33 #include <EGL/eglext.h>
46 Buffer(std::shared_ptr<NativeBuffer>
const& buffer_handle,
47 std::shared_ptr<EGLExtensions>
const& extensions);
61 typedef std::pair<EGLDisplay, EGLContext> DispContextPair;
62 std::map<DispContextPair,EGLImageKHR> egl_image_map;
64 std::mutex
mutable content_lock;
65 std::shared_ptr<NativeBuffer> native_buffer;
66 std::shared_ptr<EGLExtensions> egl_extensions;
All things Mir.
Definition: aging_buffer.h:24
geometry::Size size() const
Definition: buffer.cpp:52
void gl_bind_to_texture() override
Definition: buffer.cpp:76
MirPixelFormat pixel_format() const
Definition: buffer.cpp:65
geometry::Stride stride() const
Definition: buffer.cpp:58
~Buffer()
Definition: buffer.cpp:43
Definition: buffer_basic.h:29
Definition: android_input_receiver.h:32
std::shared_ptr< NativeBuffer > native_buffer_handle() const
Definition: buffer.cpp:124
Definition: dimensions.h:38
bool can_bypass() const override
Definition: buffer.cpp:71