Mir
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
src
client
gbm
gbm_client_buffer_factory.h
Go to the documentation of this file.
1
/*
2
* Copyright © 2013 Canonical Ltd.
3
*
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU Lesser General Public License version 3 as
6
* published by the Free Software Foundation.
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU Lesser General Public License for more details.
12
*
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15
*
16
* Authored by:
17
* Christopher James Halse Rogers <christopher.halse.rogers@canonical.com>
18
*/
19
20
#ifndef MIR_CLIENT_GBM_GBM_CLIENT_BUFFER_FACTORY_H_
21
#define MIR_CLIENT_GBM_GBM_CLIENT_BUFFER_FACTORY_H_
22
23
#include "../client_buffer_factory.h"
24
#include "
gbm_client_buffer.h
"
25
26
namespace
mir
27
{
28
namespace
client
29
{
30
class
ClientBuffer;
31
32
namespace
gbm
33
{
34
35
class
DRMFDHandler;
36
37
class
GBMClientBufferFactory
:
public
ClientBufferFactory
38
{
39
public
:
40
explicit
GBMClientBufferFactory
(std::shared_ptr<DRMFDHandler>
const
& drm_fd_handler);
41
42
std::shared_ptr<ClientBuffer>
create_buffer
(std::shared_ptr<MirBufferPackage>
const
& package,
43
geometry::Size
size
,
geometry::PixelFormat
pf);
44
private
:
45
std::shared_ptr<DRMFDHandler> drm_fd_handler;
46
};
47
48
}
49
}
50
}
51
#endif
/* MIR_CLIENT_GBM_GBM_CLIENT_BUFFER_FACTORY_H_ */
Copyright © 2012,2013 Canonical Ltd.
Generated on Wed Oct 30 18:52:19 UTC 2013