congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
EGLContext
Code IndexAdd Tabnine to your IDE (free)

How to use
EGLContext
in
android.opengl

Best Java code snippets using android.opengl.EGLContext (Showing top 9 results out of 315)

origin: aserbao/AndroidCamera

/**
 * Returns true if our context and the specified surface are current.
 */
public boolean isCurrent(EGLSurface eglSurface) {
  return mEGLContext.equals(EGL14.eglGetCurrentContext()) &&
    eglSurface.equals(EGL14.eglGetCurrentSurface(EGL14.EGL_DRAW));
}
origin: saki4510t/libcommon

@Override
@SuppressLint("NewApi")
public long getNativeHandle() {
  return eglContext != null ?
    (BuildCheck.isLollipop()
      ? eglContext.getNativeHandle() : eglContext.getHandle()) : 0L;
}
origin: upyun/android-push-sdk

/**
 * Returns true if our context and the specified surface are current.
 */
public boolean isCurrent(EGLSurface eglSurface) {
  return mEGLContext.equals(EGL14.eglGetCurrentContext()) &&
    eglSurface.equals(EGL14.eglGetCurrentSurface(EGL14.EGL_DRAW));
}
origin: dingjikerbo/Android-RTSP

/**
 * Returns true if our context and the specified surface are current.
 */
public boolean isCurrent(EGLSurface eglSurface) {
  return mEGLContext.equals(EGL14.eglGetCurrentContext()) &&
    eglSurface.equals(EGL14.eglGetCurrentSurface(EGL14.EGL_DRAW));
}
origin: googlecreativelab/shadercam

/**
 * Returns true if our context and the specified surface are current.
 */
public boolean isCurrent(EGLSurface eglSurface) {
  return mEGLContext.equals(EGL14.eglGetCurrentContext()) &&
    eglSurface.equals(EGL14.eglGetCurrentSurface(EGL14.EGL_DRAW));
}
origin: RudreshJR/VideoCompression

public void release() {
  if (EGL14.eglGetCurrentContext().equals(mEGLContext)) {
    EGL14.eglMakeCurrent(mEGLDisplay, EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_CONTEXT);
  }
  EGL14.eglDestroySurface(mEGLDisplay, mEGLSurface);
  EGL14.eglDestroyContext(mEGLDisplay, mEGLContext);
  mSurface.release();
  mEGLDisplay = null;
  mEGLContext = null;
  mEGLSurface = null;
  mSurface = null;
}
origin: tangpeng/VideoCompressor

public void release() {
  if (EGL14.eglGetCurrentContext().equals(mEGLContext)) {
    EGL14.eglMakeCurrent(mEGLDisplay, EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_CONTEXT);
  }
  EGL14.eglDestroySurface(mEGLDisplay, mEGLSurface);
  EGL14.eglDestroyContext(mEGLDisplay, mEGLContext);
  mSurface.release();
  mEGLDisplay = null;
  mEGLContext = null;
  mEGLSurface = null;
  mSurface = null;
}
origin: LLhon/Android-Video-Editor

public void release() {
  if (EGL14.eglGetCurrentContext().equals(mEGLContext)) {
    EGL14.eglMakeCurrent(mEGLDisplay, EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_CONTEXT);
  }
  EGL14.eglDestroySurface(mEGLDisplay, mEGLSurface);
  EGL14.eglDestroyContext(mEGLDisplay, mEGLContext);
  mSurface.release();
  mEGLDisplay = null;
  mEGLContext = null;
  mEGLSurface = null;
  mSurface = null;
}
origin: aserbao/AndroidCamera

/**
 * Discard all resources held by this class, notably the EGL context.  Also releases the
 * Surface that was passed to our constructor.
 */
public void release() {
  if (EGL14.eglGetCurrentContext().equals(mEGLContext)) {
    // Clear the current context and surface to ensure they are discarded immediately.
    EGL14.eglMakeCurrent(mEGLDisplay, EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_SURFACE,
        EGL14.EGL_NO_CONTEXT);
  }
  EGL14.eglDestroySurface(mEGLDisplay, mEGLSurface);
  EGL14.eglDestroyContext(mEGLDisplay, mEGLContext);
  //EGL14.eglTerminate(mEGLDisplay);
  mSurface.release();
  // null everything out so future attempts to use this object will cause an NPE
  mEGLDisplay = null;
  mEGLContext = null;
  mEGLSurface = null;
  mSurface = null;
}
android.openglEGLContext

Most used methods

  • equals
  • getHandle
  • getNativeHandle

Popular in Java

  • Parsing JSON documents to java classes using gson
  • compareTo (BigDecimal)
  • startActivity (Activity)
  • onCreateOptionsMenu (Activity)
  • Kernel (java.awt.image)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Notification (javax.management)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now