mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-10 15:58:06 +00:00
aux/android: Expose native pointer from MonadoView
This commit is contained in:
parent
faa753c667
commit
45c0ca2ef9
|
@ -136,6 +136,14 @@ public class MonadoView extends SurfaceView implements SurfaceHolder.Callback, S
|
|||
return displayMetrics;
|
||||
}
|
||||
|
||||
@Keep
|
||||
public long getNativePointer() {
|
||||
if (nativeCounterpart == null) {
|
||||
return 0;
|
||||
}
|
||||
return nativeCounterpart.getNativePointer();
|
||||
}
|
||||
|
||||
private void createSurfaceInActivity() {
|
||||
createSurfaceInActivity(false);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue