Search in sources :

Example 36 with EGLSurface

use of javax.microedition.khronos.egl.EGLSurface in project android_frameworks_base by ParanoidAndroid.

the class EGLLogWrapper method eglCreatePbufferSurface.

public EGLSurface eglCreatePbufferSurface(EGLDisplay display, EGLConfig config, int[] attrib_list) {
    begin("eglCreatePbufferSurface");
    arg("display", display);
    arg("config", config);
    arg("attrib_list", attrib_list);
    end();
    EGLSurface result = mEgl10.eglCreatePbufferSurface(display, config, attrib_list);
    returns(result);
    checkError();
    return result;
}
Also used : EGLSurface(javax.microedition.khronos.egl.EGLSurface)

Example 37 with EGLSurface

use of javax.microedition.khronos.egl.EGLSurface in project platform_frameworks_base by android.

the class EGLLogWrapper method eglCreatePbufferSurface.

public EGLSurface eglCreatePbufferSurface(EGLDisplay display, EGLConfig config, int[] attrib_list) {
    begin("eglCreatePbufferSurface");
    arg("display", display);
    arg("config", config);
    arg("attrib_list", attrib_list);
    end();
    EGLSurface result = mEgl10.eglCreatePbufferSurface(display, config, attrib_list);
    returns(result);
    checkError();
    return result;
}
Also used : EGLSurface(javax.microedition.khronos.egl.EGLSurface)

Example 38 with EGLSurface

use of javax.microedition.khronos.egl.EGLSurface in project platform_frameworks_base by android.

the class RenderTarget method forSurface.

@TargetApi(11)
public RenderTarget forSurface(Surface surface) {
    EGLConfig eglConfig = chooseEglConfig(mEgl, mDisplay);
    EGLSurface eglSurf = null;
    synchronized (mSurfaceSources) {
        eglSurf = mSurfaceSources.get(surface);
        if (eglSurf == null) {
            eglSurf = mEgl.eglCreateWindowSurface(mDisplay, eglConfig, surface, null);
            mSurfaceSources.put(surface, eglSurf);
        }
    }
    checkEglError(mEgl, "eglCreateWindowSurface");
    checkSurface(mEgl, eglSurf);
    RenderTarget result = new RenderTarget(mDisplay, mContext, eglSurf, 0, false, true);
    result.setSurfaceSource(surface);
    result.addReferenceTo(eglSurf);
    return result;
}
Also used : EGLSurface(javax.microedition.khronos.egl.EGLSurface) EGLConfig(javax.microedition.khronos.egl.EGLConfig) TargetApi(android.annotation.TargetApi)

Example 39 with EGLSurface

use of javax.microedition.khronos.egl.EGLSurface in project android_frameworks_base by DirtyUnicorns.

the class RenderTarget method newTarget.

public static RenderTarget newTarget(int width, int height) {
    EGL10 egl = (EGL10) EGLContext.getEGL();
    EGLDisplay eglDisplay = createDefaultDisplay(egl);
    EGLConfig eglConfig = chooseEglConfig(egl, eglDisplay);
    EGLContext eglContext = createContext(egl, eglDisplay, eglConfig);
    EGLSurface eglSurface = createSurface(egl, eglDisplay, width, height);
    RenderTarget result = new RenderTarget(eglDisplay, eglContext, eglSurface, 0, true, true);
    result.addReferenceTo(eglSurface);
    return result;
}
Also used : EGLSurface(javax.microedition.khronos.egl.EGLSurface) EGL10(javax.microedition.khronos.egl.EGL10) EGLDisplay(javax.microedition.khronos.egl.EGLDisplay) EGLContext(javax.microedition.khronos.egl.EGLContext) EGLConfig(javax.microedition.khronos.egl.EGLConfig)

Example 40 with EGLSurface

use of javax.microedition.khronos.egl.EGLSurface in project XobotOS by xamarin.

the class EGLLogWrapper method eglGetCurrentSurface.

public EGLSurface eglGetCurrentSurface(int readdraw) {
    begin("eglGetCurrentSurface");
    arg("readdraw", readdraw);
    end();
    EGLSurface result = mEgl10.eglGetCurrentSurface(readdraw);
    returns(result);
    checkError();
    return result;
}
Also used : EGLSurface(javax.microedition.khronos.egl.EGLSurface)

Aggregations

EGLSurface (javax.microedition.khronos.egl.EGLSurface)48 EGLConfig (javax.microedition.khronos.egl.EGLConfig)20 TargetApi (android.annotation.TargetApi)8 EGL10 (javax.microedition.khronos.egl.EGL10)8 EGLContext (javax.microedition.khronos.egl.EGLContext)8 EGLDisplay (javax.microedition.khronos.egl.EGLDisplay)8