Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions | List of all members
mir::frontend::ClientBufferTracker Class Reference

Responsible for tracking what buffers the client library knows about for a surface. More...

#include <client_buffer_tracker.h>

Public Member Functions

 ClientBufferTracker (unsigned int client_cache_size)
 
 ClientBufferTracker (ClientBufferTracker const &)=delete
 
ClientBufferTrackeroperator= (ClientBufferTracker const &)=delete
 
void add (graphics::BufferID const &id)
 Add a BufferID to the list of buffers known by the client. More...
 
bool client_has (graphics::BufferID const &id) const
 

Detailed Description

Responsible for tracking what buffers the client library knows about for a surface.

See Also
mir::client::ClientBufferDepository for the client-side of this tracking
Note
Changes to the tracking algorithm of mir::client::ClientBufferDepository will need to be mirrored here

Constructor & Destructor Documentation

mir::frontend::ClientBufferTracker::ClientBufferTracker ( unsigned int  client_cache_size)
mir::frontend::ClientBufferTracker::ClientBufferTracker ( ClientBufferTracker const &  )
delete

Member Function Documentation

void mir::frontend::ClientBufferTracker::add ( graphics::BufferID const &  id)

Add a BufferID to the list of buffers known by the client.

Typically this should be done just prior to or just after sending the buffer information

bool mir::frontend::ClientBufferTracker::client_has ( graphics::BufferID const &  id) const
ClientBufferTracker& mir::frontend::ClientBufferTracker::operator= ( ClientBufferTracker const &  )
delete

The documentation for this class was generated from the following files:

Copyright © 2012,2013 Canonical Ltd.
Generated on Wed Oct 30 18:52:19 UTC 2013