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 
45  void driver_returns_buffer(ANativeWindowBuffer*, int fence_fd );
46  void dispatch_driver_request_format(int format);
47  int driver_requests_info(int key) const;
48  void sync_to_display(bool);
49 
50 private:
51  EGLNativeSurface& surface;
52  int driver_pixel_format;
53  std::shared_ptr<graphics::android::SyncFileOps> const sync_ops;
54 };
55 
56 }
57 }
58 }
59 
60 #endif /* MIR_CLIENT_NATIVE_ANDROID_EGL_NATIVE_SURFACE_INTERPRETER_H_ */
All things Mir.
Definition: buffer_stream.h:37
Definition: egl_native_surface_interpreter.h:39
Definition: native_buffer.h:44
void sync_to_display(bool)
Definition: egl_native_surface_interpreter.cpp:83
Definition: egl_native_surface.h:31
Definition: android_driver_interpreter.h:32
graphics::NativeBuffer * driver_requests_buffer()
Definition: egl_native_surface_interpreter.cpp:36
int driver_requests_info(int key) const
Definition: egl_native_surface_interpreter.cpp:60
void dispatch_driver_request_format(int format)
Definition: egl_native_surface_interpreter.cpp:55
Definition: android_input_receiver.h:32
void driver_returns_buffer(ANativeWindowBuffer *, int fence_fd)
Definition: egl_native_surface_interpreter.cpp:46
EGLNativeSurfaceInterpreter(EGLNativeSurface &surface)
Definition: egl_native_surface_interpreter.cpp:28

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