Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
buffer_writer.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2014 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU Lesser General Public License version 3,
6  * as 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  * Robert Carr <robert.carr@canonical.com>
18  */
19 
20 #ifndef MIR_PLATFORM_ANDROID_BUFFER_WRITER_H_
21 #define MIR_PLATFORM_ANDROID_BUFFER_WRITER_H_
22 
24 
25 #include <hardware/gralloc.h>
26 
27 #include <memory>
28 
29 namespace mir
30 {
31 namespace graphics
32 {
33 namespace android
34 {
35 
37 {
38 public:
39  BufferWriter();
40 
41  void write(graphics::Buffer& buffer, unsigned char const* pixels, size_t size) override;
42 private:
43  gralloc_module_t const* hw_module;
44 };
45 
46 }
47 }
48 }
49 
50 #endif /* MIR_PLATFORM_ANDROID_BUFFER_WRITER_H_ */
All things Mir.
Definition: aging_buffer.h:24
Definition: buffer_writer.h:36
Definition: android_input_receiver.h:32
An interface provided by the graphics platform allowing for writing untiled pixel data into buffers...
Definition: buffer_writer.h:28
Definition: buffer.h:34
BufferWriter()
Definition: buffer_writer.cpp:35
int const size
Definition: make_socket_rpc_channel.cpp:51
void write(graphics::Buffer &buffer, unsigned char const *pixels, size_t size) override
Definition: buffer_writer.cpp:42

Copyright © 2012,2013 Canonical Ltd.
Generated on Fri Oct 10 14:07:14 UTC 2014