Mir
|
#include <screencast_display_buffer.h>
Public Member Functions | |
ScreencastDisplayBuffer (geometry::Rectangle const &rect, graphics::Buffer &buffer) | |
~ScreencastDisplayBuffer () | |
geometry::Rectangle | view_area () const |
The area the DisplayBuffer occupies in the virtual screen space. More... | |
void | make_current () |
Makes the DisplayBuffer the current GL rendering target. More... | |
void | release_current () |
Releases the current GL rendering target. More... | |
void | render_and_post_update (graphics::RenderableList const &, std::function< void(graphics::Renderable const &)> const &) |
void | post_update () |
This will trigger OpenGL rendering and post the result to the screen. More... | |
bool | can_bypass () const |
to be deprecated More... | |
MirOrientation | orientation () const |
Returns the orientation of the display buffer relative to how the user should see it (the orientation of the output). More... | |
![]() | |
virtual | ~DisplayBuffer () |
virtual void | render_and_post_update (RenderableList const &renderlist, std::function< void(Renderable const &)> const &render_fn)=0 |
This will render renderlist to the screen and post the result to the screen. More... | |
virtual void | post_update (std::shared_ptr< Buffer >) |
Additional Inherited Members | |
![]() | |
DisplayBuffer ()=default | |
DisplayBuffer (DisplayBuffer const &c)=delete | |
DisplayBuffer & | operator= (DisplayBuffer const &c)=delete |
mir::compositor::ScreencastDisplayBuffer::ScreencastDisplayBuffer | ( | geometry::Rectangle const & | rect, |
graphics::Buffer & | buffer | ||
) |
mir::compositor::ScreencastDisplayBuffer::~ScreencastDisplayBuffer | ( | ) |
|
virtual |
to be deprecated
Implements mir::graphics::DisplayBuffer.
|
virtual |
Makes the DisplayBuffer the current GL rendering target.
Implements mir::graphics::DisplayBuffer.
|
virtual |
Returns the orientation of the display buffer relative to how the user should see it (the orientation of the output).
This tells us how much (if any) rotation the renderer needs to do. If your DisplayBuffer can do the rotation itself then this will always return mir_orientation_normal. If the DisplayBuffer does not implement the rotation itself then this function will return the amount of rotation the renderer must do to make things "look right".
Implements mir::graphics::DisplayBuffer.
|
virtual |
This will trigger OpenGL rendering and post the result to the screen.
Implements mir::graphics::DisplayBuffer.
|
virtual |
Releases the current GL rendering target.
Implements mir::graphics::DisplayBuffer.
void mir::compositor::ScreencastDisplayBuffer::render_and_post_update | ( | graphics::RenderableList const & | , |
std::function< void(graphics::Renderable const &)> const & | |||
) |
|
virtual |
The area the DisplayBuffer occupies in the virtual screen space.
Implements mir::graphics::DisplayBuffer.
Copyright © 2012,2013 Canonical Ltd.
Generated on Fri Apr 11 21:14:53 UTC 2014