#include <display.h>
mir::graphics::nested::detail::DisplaySyncGroup::DisplaySyncGroup |
( |
std::shared_ptr< detail::DisplayBuffer > const & |
output | ) |
|
void mir::graphics::nested::detail::DisplaySyncGroup::for_each_display_buffer |
( |
std::function< void(graphics::DisplayBuffer &)> const & |
| ) |
|
|
override |
void mir::graphics::nested::detail::DisplaySyncGroup::post |
( |
| ) |
|
|
overridevirtual |
std::chrono::milliseconds mir::graphics::nested::detail::DisplaySyncGroup::recommended_sleep |
( |
| ) |
const |
|
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.
The documentation for this class was generated from the following file:
Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Sep 8 14:50:19 UTC 2016