code: protected final boolean isGLThread() {
          final Thread glThread = sGLThread.get();
          return glThread != null && glThread.equals(Thread.currentThread());
      }
docs: Determine whether the calling thread is the GL thread.
  
  @return {@code True} if called from the GL thread, {@code false} if
  called from another thread.