示例#1
0
 private void maybeDoSingleThreadedWorkaround(
     Runnable eventDispatchThreadAction, Runnable invokeGLAction, boolean isReshape) {
   if (Threading.isSingleThreaded() && !Threading.isOpenGLThread()) {
     Threading.invokeOnOpenGLThread(eventDispatchThreadAction);
   } else {
     drawableHelper.invokeGL(pbufferDrawable, context, invokeGLAction, initAction);
   }
 }
示例#2
0
 public boolean getAutoSwapBufferMode() {
   return drawableHelper.getAutoSwapBufferMode();
 }
示例#3
0
 public void invoke(boolean wait, GLRunnable glRunnable) {
   drawableHelper.invoke(this, wait, glRunnable);
 }
示例#4
0
 public void setAutoSwapBufferMode(boolean onOrOff) {
   drawableHelper.setAutoSwapBufferMode(onOrOff);
 }
示例#5
0
 public Thread getAnimator() {
   return drawableHelper.getAnimator();
 }
示例#6
0
 public void setAnimator(Thread animator) {
   drawableHelper.setAnimator(animator);
 }
示例#7
0
 public void removeGLEventListener(GLEventListener listener) {
   drawableHelper.removeGLEventListener(listener);
 }
示例#8
0
 public void addGLEventListener(int index, GLEventListener listener) {
   drawableHelper.addGLEventListener(index, listener);
 }
示例#9
0
 public void addGLEventListener(GLEventListener listener) {
   drawableHelper.addGLEventListener(listener);
 }