|
Mir
|
#include <display_group.h>
Public Member Functions | |
| DisplayGroup (std::unique_ptr< DisplayBuffer > primary_buffer) | |
| void | for_each_display_buffer (std::function< void(graphics::DisplayBuffer &)> const &f) override |
| void | post () override |
| Post the content of the DisplayBuffers associated with this DisplaySyncGroup. More... | |
| std::chrono::milliseconds | recommended_sleep () const override |
| Returns a recommendation to the compositor as to how long it should wait before sampling the scene for the next frame. More... | |
| void | set_orientation (MirOrientation orientation) |
Public Member Functions inherited from mir::graphics::DisplaySyncGroup | |
| virtual void | for_each_display_buffer (std::function< void(DisplayBuffer &)> const &f)=0 |
| Executes a functor that allows the DisplayBuffer contents to be updated. More... | |
| virtual | ~DisplaySyncGroup ()=default |
Additional Inherited Members | |
Protected Member Functions inherited from mir::graphics::DisplaySyncGroup | |
| DisplaySyncGroup ()=default | |
| DisplaySyncGroup (DisplaySyncGroup const &)=delete | |
| DisplaySyncGroup & | operator= (DisplaySyncGroup const &)=delete |
| mir::graphics::X::DisplayGroup::DisplayGroup | ( | std::unique_ptr< DisplayBuffer > | primary_buffer | ) |
|
override |
|
overridevirtual |
Post the content of the DisplayBuffers associated with this DisplaySyncGroup.
The content of all the DisplayBuffers in this DisplaySyncGroup are guaranteed to be onscreen in the near future. On some platforms, this may wait a potentially long time for vsync.
Implements mir::graphics::DisplaySyncGroup.
|
overridevirtual |
Returns a recommendation to the compositor as to how long it should wait before sampling the scene for the next frame.
Sampling the scene too early results in up to one whole frame of extra lag if rendering is fast or skipped altogether (bypass/overlays). But sampling too late and we might miss the deadline. If unsure just return zero.
Implements mir::graphics::DisplaySyncGroup.
| void mir::graphics::X::DisplayGroup::set_orientation | ( | MirOrientation | orientation | ) |
Copyright © 2012-2015 Canonical Ltd.
Generated on Wed Mar 30 00:29:56 UTC 2016