#include <surface_stack.h>
mir::scene::SurfaceStack::SurfaceStack |
( |
std::shared_ptr< SceneReport > const & |
report | ) |
|
|
explicit |
virtual mir::scene::SurfaceStack::~SurfaceStack |
( |
| ) |
|
|
inlinevirtualnoexcept |
void mir::scene::SurfaceStack::add_input_visualization |
( |
std::shared_ptr< graphics::Renderable > const & |
overlay | ) |
|
|
overridevirtual |
void mir::scene::SurfaceStack::add_observer |
( |
std::shared_ptr< Observer > const & |
observer | ) |
|
|
override |
void mir::scene::SurfaceStack::emit_scene_changed |
( |
| ) |
|
|
overridevirtual |
void mir::scene::SurfaceStack::for_each |
( |
std::function< void(std::shared_ptr< input::Surface > const &)> const & |
callback | ) |
|
|
override |
Return the number of additional frames that you need to render to get fully up to date with the latest data in the scene.
For a generic "scene change" this will be just 1. For surfaces that have multiple frames queued up however, it could be greater than 1. When the result reaches zero, you know you have consumed all the latest data from the scene.
Implements mir::compositor::Scene.
void mir::scene::SurfaceStack::raise |
( |
std::weak_ptr< Surface > const & |
surface | ) |
|
|
overridevirtual |
void mir::scene::SurfaceStack::raise |
( |
SurfaceSet const & |
surfaces | ) |
|
|
overridevirtual |
void mir::scene::SurfaceStack::remove_input_visualization |
( |
std::weak_ptr< graphics::Renderable > const & |
overlay | ) |
|
|
overridevirtual |
void mir::scene::SurfaceStack::remove_observer |
( |
std::weak_ptr< Observer > const & |
observer | ) |
|
|
overridevirtual |
void mir::scene::SurfaceStack::remove_surface |
( |
std::weak_ptr< Surface > const & |
surface | ) |
|
|
overridevirtual |
Generate a valid sequence of scene elements based on the current state of the Scene.
- Parameters
-
[in] | id | An arbitrary unique identifier used to distinguish separate compositors which need to receive a sequence for rendering. Calling with the same id will return a new (different) sequence to that user each time. For consistency, all callers need to determine their id in the same way (e.g. always use "this" pointer). |
- Returns
- a sequence of mc::SceneElements for the compositor id. The sequence is in stacking order from back to front.
Implements mir::compositor::Scene.
The documentation for this class was generated from the following files:
Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Oct 8 16:20:16 UTC 2015