Mir
graphics_region_factory.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2012-2014 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU 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 General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored by: Kevin DuBois <kevin.dubois@canonical.com>
17  */
18 #ifndef MIR_TEST_DRAW_GRAPHICS_REGION_FACTORY
19 #define MIR_TEST_DRAW_GRAPHICS_REGION_FACTORY
20 
23 #include <hardware/gralloc.h>
24 #include <memory>
25 
26 namespace mir
27 {
28 namespace test
29 {
31 {
32 public:
35  std::shared_ptr<MirGraphicsRegion> graphic_region_from_handle(
36  graphics::NativeBuffer& native_buffer);
37 
38 protected:
41 
42 private:
43  gralloc_module_t* module;
44  alloc_device_t* alloc_dev;
45 };
46 }
47 }
48 #endif /* MIR_TEST_DRAW_GRAPHICS_REGION_FACTORY */
All things Mir.
Definition: atomic_callback.h:25
GraphicsRegionFactory & operator=(GraphicsRegionFactory const &)=delete
~GraphicsRegionFactory()
Definition: android_graphics_region_factory.cpp:37
Definition: native_buffer.h:44
std::shared_ptr< MirGraphicsRegion > graphic_region_from_handle(graphics::NativeBuffer &native_buffer)
Definition: android_graphics_region_factory.cpp:42
GraphicsRegionFactory()
Definition: android_graphics_region_factory.cpp:28
Definition: graphics_region_factory.h:30

Copyright © 2012-2015 Canonical Ltd.
Generated on Wed Mar 30 00:29:56 UTC 2016