#include <buffer_queue.h>
void mir::compositor::BufferQueue::allow_framedropping |
( |
bool |
dropping_allowed | ) |
|
|
overridevirtual |
int mir::compositor::BufferQueue::buffers_free_for_client |
( |
| ) |
const |
|
overridevirtual |
Return the number of client acquisitions that can be completed synchronously without blocking, before a compositor consumes one.
This is used for pre-filling the queue in tests. Don't assume it's always nbuffers-1 as it might be less.
Implements mir::compositor::BufferBundle.
int mir::compositor::BufferQueue::buffers_ready_for_compositor |
( |
void const * |
user_id | ) |
const |
|
overridevirtual |
void mir::compositor::BufferQueue::client_acquire |
( |
Callback |
complete | ) |
|
|
overridevirtual |
std::shared_ptr< mg::Buffer > mir::compositor::BufferQueue::compositor_acquire |
( |
void const * |
user_id | ) |
|
|
overridevirtual |
Acquire the next buffer that's ready to display/composite.
- Parameters
-
[in] | user_id | A unique identifier of who is going to use the buffer, to ensure that separate users representing separate monitors who need the same frame will get the same buffer. However consecutive calls for the same user will get different buffers. To avoid collisions, all callers should determine user_id in the same way (e.g. always use "this" pointer). |
Implements mir::compositor::BufferAcquisition.
void mir::compositor::BufferQueue::compositor_release |
( |
std::shared_ptr< graphics::Buffer > const & |
buffer | ) |
|
|
overridevirtual |
void mir::compositor::BufferQueue::drop_client_requests |
( |
| ) |
|
|
overridevirtual |
void mir::compositor::BufferQueue::drop_old_buffers |
( |
| ) |
|
|
overridevirtual |
void mir::compositor::BufferQueue::force_requests_to_complete |
( |
| ) |
|
|
overridevirtual |
bool mir::compositor::BufferQueue::framedropping_allowed |
( |
| ) |
const |
bool mir::compositor::BufferQueue::is_a_current_buffer_user |
( |
void const * |
user_id | ) |
const |
void mir::compositor::BufferQueue::resize |
( |
const geometry::Size & |
newsize | ) |
|
|
overridevirtual |
int mir::compositor::BufferQueue::scaling_delay |
( |
| ) |
const |
void mir::compositor::BufferQueue::set_scaling_delay |
( |
int |
nframes | ) |
|
Set the minimum number of smooth frames the client must keep up with the compositor for in order to qualify for queue scaling (dynamic double buffering for reduced latency).
A negative value means never but it's recommended that you never change this.
std::shared_ptr< mg::Buffer > mir::compositor::BufferQueue::snapshot_acquire |
( |
| ) |
|
|
overridevirtual |
void mir::compositor::BufferQueue::snapshot_release |
( |
std::shared_ptr< graphics::Buffer > const & |
buffer | ) |
|
|
overridevirtual |
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