Mir
android_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_ANDROID_ANDROID_BUFFER_FACTORY_H_
21 #define MIR_CLIENT_ANDROID_ANDROID_BUFFER_FACTORY_H_
22 
23 #include <memory>
24 
26 #include "mir_toolkit/common.h"
27 #include "mir/geometry/size.h"
28 
30 
31 namespace mir
32 {
33 namespace client
34 {
35 class ClientBuffer;
36 namespace android
37 {
38 class BufferRegistrar;
40 {
41 public:
43  std::shared_ptr<BufferRegistrar> const& registrar);
44  std::shared_ptr<ClientBuffer> create_buffer(
45  std::shared_ptr<MirBufferPackage> const& package,
47  MirPixelFormat pf) override;
48 private:
49  std::shared_ptr<BufferRegistrar> const registrar;
50 };
51 
52 }
53 }
54 }
55 #endif /* MIR_CLIENT_ANDROID_ANDROID_BUFFER_FACTORY_H_ */
Definition: size.h:30
All things Mir.
Definition: buffer_stream.h:37
A factory for creating client-side representations of graphics buffers.
Definition: client_buffer_factory.h:38
AndroidClientBufferFactory(std::shared_ptr< BufferRegistrar > const &registrar)
Definition: android_client_buffer_factory.cpp:28
Definition: android_client_buffer_factory.h:39
MirPixelFormat
The order of components in a format enum matches the order of the components as they would be written...
Definition: common.h:127
std::shared_ptr< ClientBuffer > create_buffer(std::shared_ptr< MirBufferPackage > const &package, geometry::Size size, MirPixelFormat pf) override
Creates the client-side representation of a buffer.
Definition: android_client_buffer_factory.cpp:34
Definition: android_input_receiver.h:32
Definition: buffer_registrar.h:38
int const size
Definition: make_socket_rpc_channel.cpp:51

Copyright © 2012,2013 Canonical Ltd.
Generated on Tue Mar 24 16:15:19 UTC 2015