Mir
client_buffer_factory.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2016 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_EGLSTREAM_CLIENT_BUFFER_FACTORY_H_
21 #define MIR_CLIENT_EGLSTREAM_CLIENT_BUFFER_FACTORY_H_
22 
24 
25 namespace mir
26 {
27 namespace client
28 {
29 namespace eglstream
30 {
31 
33 {
34 public:
35  ClientBufferFactory() = default;
36 
37  std::shared_ptr<client::ClientBuffer> create_buffer(
38  std::shared_ptr<MirBufferPackage> const& package,
40 };
41 
42 }
43 }
44 }
45 #endif /* MIR_CLIENT_EGLSTREAM_CLIENT_BUFFER_FACTORY_H_ */
Definition: size.h:30
std::shared_ptr< client::ClientBuffer > create_buffer(std::shared_ptr< MirBufferPackage > const &package, geometry::Size size, MirPixelFormat pf)
Creates the client-side representation of a buffer.
All things Mir.
Definition: atomic_callback.h:25
A factory for creating client-side representations of graphics buffers.
Definition: client_buffer_factory.h:38
MirPixelFormat
32-bit pixel formats (8888): The order of components in the enum matches the order of the components ...
Definition: common.h:134
Definition: client_buffer_factory.h:32
int const size
Definition: make_socket_rpc_channel.cpp:51

Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Sep 8 14:50:19 UTC 2016