19 #ifndef MIR_GRAPHICS_ANDROID_MIR_NATIVE_WINDOW_H_
20 #define MIR_GRAPHICS_ANDROID_MIR_NATIVE_WINDOW_H_
22 #include <system/window.h>
32 class AndroidDriverInterpreter;
34 class MirNativeWindow :
public ANativeWindow
37 explicit MirNativeWindow(std::shared_ptr<AndroidDriverInterpreter>
const& interpreter);
39 int query(
int key,
int* value)
const;
40 int perform(
int key, va_list args );
41 int dequeueBuffer(
struct ANativeWindowBuffer** buffer,
int* fence);
42 int dequeueBufferAndWait(
struct ANativeWindowBuffer** buffer);
43 int queueBuffer(
struct ANativeWindowBuffer* buffer,
int fence);
44 int cancelBuffer(
struct ANativeWindowBuffer* buffer,
int fence);
45 int setSwapInterval(
int interval);
48 std::shared_ptr<AndroidDriverInterpreter>
const driver_interpreter;