Monado OpenXR Runtime
android_custom_surface.cpp File Reference

Implementation of native code for Android custom surface. More...

#include "android_custom_surface.h"
#include "android_globals.h"
#include "android_load_class.hpp"
#include "xrt/xrt_config_android.h"
#include "util/u_logging.h"
#include "wrap/android.content.h"
#include "wrap/android.hardware.display.h"
#include "wrap/android.provider.h"
#include "wrap/android.view.h"
#include "wrap/android.graphics.h"
#include "org.freedesktop.monado.auxiliary.hpp"
#include <android/native_window_jni.h>
Include dependency graph for android_custom_surface.cpp:

Data Structures

struct  android_custom_surface
 

Functions

struct android_custom_surfaceandroid_custom_surface_async_start (struct _JavaVM *vm, void *context, int32_t display_id, const char *surface_title, int32_t preferred_display_mode_id)
 
void android_custom_surface_destroy (struct android_custom_surface **ptr_custom_surface)
 
ANativeWindow * android_custom_surface_wait_get_surface (struct android_custom_surface *custom_surface, uint64_t timeout_ms)
 
bool android_custom_surface_get_display_metrics (struct _JavaVM *vm, void *context, struct xrt_android_display_metrics *out_metrics)
 
bool android_custom_surface_can_draw_overlays (struct _JavaVM *vm, void *context)
 

Detailed Description

Function Documentation

◆ android_custom_surface_get_display_metrics()

bool android_custom_surface_get_display_metrics ( struct _JavaVM *  vm,
void *  context,
struct xrt_android_display_metrics *  out_metrics 
)
Todo:
implement non-deprecated codepath for api 30+