Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 <memory>
24 
25 namespace mir
26 {
27 namespace test
28 {
29 namespace draw
30 {
31 
33 {
34 public:
36  virtual std::shared_ptr<MirGraphicsRegion> graphic_region_from_handle(
37  graphics::NativeBuffer& native_buffer) = 0;
38 
39 protected:
40  GraphicsRegionFactory() = default;
43 };
44 
45 std::shared_ptr<GraphicsRegionFactory> create_graphics_region_factory();
46 
47 }
48 }
49 }
50 #endif /* MIR_TEST_DRAW_GRAPHICS_REGION_FACTORY */
All things Mir.
Definition: aging_buffer.h:24
GraphicsRegionFactory & operator=(GraphicsRegionFactory const &)=delete
std::shared_ptr< GraphicsRegionFactory > create_graphics_region_factory()
Definition: android_graphics_region_factory.cpp:99
Definition: native_buffer.h:39
Definition: graphics_region_factory.h:32
virtual ~GraphicsRegionFactory()
Definition: graphics_region_factory.h:35
virtual std::shared_ptr< MirGraphicsRegion > graphic_region_from_handle(graphics::NativeBuffer &native_buffer)=0

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