19 #ifndef MIR_CLIENT_MIR_SCREENCAST_H_
20 #define MIR_CLIENT_MIR_SCREENCAST_H_
25 #include "mir_protobuf.pb.h"
29 #include <EGL/eglplatform.h>
36 class ClientBufferStreamFactory;
37 class ClientBufferStream;
48 mir::protobuf::DisplayServer& server,
49 std::shared_ptr<mir::client::ClientBufferStreamFactory>
const& buffer_stream_factory,
70 void screencast_created(
75 mir::protobuf::DisplayServer& server;
77 std::shared_ptr<mir::client::ClientBufferStreamFactory>
const buffer_stream_factory;
79 std::shared_ptr<mir::client::ClientBufferStream> buffer_stream;
81 mir::protobuf::Screencast protobuf_screencast;
82 mir::protobuf::Void protobuf_void;
All things Mir.
Definition: buffer_stream.h:37
Definition: mir_wait_handle.h:31
MirWaitHandle * release(mir_screencast_callback callback, void *context)
Definition: mir_screencast.cpp:100
void request_and_wait_for_next_buffer()
Definition: mir_screencast.cpp:131
bool valid()
Definition: mir_screencast.cpp:85
std::shared_ptr< mir::client::ClientBuffer > get_current_buffer()
Definition: mir_screencast.cpp:95
Definition: mir_screencast.h:41
void request_and_wait_for_configure(MirSurfaceAttrib a, int value)
Definition: mir_screencast.cpp:136
EGLNativeWindowType egl_native_window()
Definition: mir_screencast.cpp:126
Definition: egl_native_surface.h:31
MirScreencast(mir::geometry::Rectangle const ®ion, mir::geometry::Size const &size, MirPixelFormat pixel_format, mir::protobuf::DisplayServer &server, std::shared_ptr< mir::client::ClientBufferStreamFactory > const &buffer_stream_factory, mir_screencast_callback callback, void *context)
Definition: mir_screencast.cpp:39
MirWaitHandle * creation_wait_handle()
Definition: mir_screencast.cpp:80
Definition: rectangle.h:33
MirWaitHandle * next_buffer(mir_screencast_callback callback, void *context)
Definition: mir_screencast.cpp:117
Definition: display_server.h:31
MirSurfaceParameters get_parameters() const
Definition: mir_screencast.cpp:90
int const size
Definition: make_socket_rpc_channel.cpp:51
MirSurfaceParameters is the structure of minimum required information that you must provide to Mir in...
Definition: client_types.h:138