init commit

This commit is contained in:
2023-10-16 16:40:14 +03:00
commit 4dad863370
596 changed files with 52907 additions and 0 deletions
@@ -0,0 +1,23 @@
package com.ea.easp;
import android.opengl.GLSurfaceView;
import android.os.Handler;
public class TaskLauncher {
private static final String TAG = "TaskLauncher";
private GLSurfaceView mGLSurfaceView;
private Handler mHandler;
public TaskLauncher(Handler handler, GLSurfaceView gLSurfaceView) {
this.mHandler = handler;
this.mGLSurfaceView = gLSurfaceView;
}
public void runInGLThread(Runnable runnable) {
this.mGLSurfaceView.queueEvent(runnable);
}
public void runInUIThread(Runnable runnable) {
this.mHandler.post(runnable);
}
}