Mir
egl_native_surface_interpreter.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 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: Kevin DuBois <kevin.dubois@canonical.com>
17  */
18 
19 #ifndef MIR_CLIENT_NATIVE_ANDROID_EGL_NATIVE_SURFACE_INTERPRETER_H_
20 #define MIR_CLIENT_NATIVE_ANDROID_EGL_NATIVE_SURFACE_INTERPRETER_H_
21 
23 #include "mir/egl_native_surface.h"
24 
25 namespace mir
26 {
27 namespace graphics
28 {
29 namespace android
30 {
31 class SyncFileOps;
32 }
33 }
34 namespace client
35 {
36 namespace android
37 {
38 
40 {
41 public:
43 
44  graphics::NativeBuffer* driver_requests_buffer() override;
45  void driver_returns_buffer(ANativeWindowBuffer*, int fence_fd) override;
46  void dispatch_driver_request_format(int format) override;
47  void dispatch_driver_request_buffer_count(unsigned int count) override;
48  int driver_requests_info(int key) const override;
49  void sync_to_display(bool) override;
50 
51 private:
52  EGLNativeSurface& surface;
53  int driver_pixel_format;
54  std::shared_ptr<graphics::android::SyncFileOps> const sync_ops;
55  unsigned int const hardware_bits;
56  unsigned int const software_bits;
57 };
58 
59 }
60 }
61 }
62 
63 #endif /* MIR_CLIENT_NATIVE_ANDROID_EGL_NATIVE_SURFACE_INTERPRETER_H_ */
All things Mir.
Definition: atomic_callback.h:25
Definition: egl_native_surface_interpreter.h:39
Definition: native_buffer.h:44
Definition: egl_native_surface.h:31
Definition: android_driver_interpreter.h:32
Definition: android_input_receiver.h:36
Definition: sync_fence.h:32

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