~alan-griffiths/mir/knee-jerk-mir_surface_state_automatic

« back to all changes in this revision

Viewing changes to include/mir_client/gbm/gbm_client_buffer_depository.h

  • Committer: Kevin DuBois
  • Date: 2012-11-13 01:36:29 UTC
  • mfrom: (245 trunk)
  • mto: This revision was merged to the branch mainline in revision 246.
  • Revision ID: kevin.dubois@canonical.com-20121113013629-q4496w4mp5e33auk
merge in base branch. move the demo clients to a new directory, examples/

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
{
32
32
class ClientBuffer;
33
33
 
 
34
namespace gbm
 
35
{
 
36
 
 
37
class DRMFDHandler;
 
38
 
34
39
class GBMClientBufferDepository : public ClientBufferDepository
35
40
{
36
41
public:
37
 
    GBMClientBufferDepository();
 
42
    GBMClientBufferDepository(std::shared_ptr<DRMFDHandler> const& drm_fd_handler);
38
43
 
39
44
    void deposit_package(std::shared_ptr<MirBufferPackage> && package, int, geometry::Size size, geometry::PixelFormat pf);
40
45
 
41
46
    std::shared_ptr<ClientBuffer> access_buffer(int id);
42
47
private:
43
48
    std::shared_ptr<ClientBuffer> buffer;
 
49
    std::shared_ptr<DRMFDHandler> drm_fd_handler;
44
50
};
45
51
 
46
52
}
47
53
}
 
54
}
48
55
#endif /* MIR_CLIENT_GBM_GBM_CLIENT_BUFFER_DEPOSITORY_H_ */