/frameworks/native/opengl/libagl/ |
D | TextureObjectManager.cpp | 34 if (mSize && surface.data) in ~EGLTextureObject() 35 free(surface.data); in ~EGLTextureObject() 43 memset(&surface, 0, sizeof(surface)); in init() 44 surface.version = sizeof(surface); in init() 74 if (!surface.data) in allocateMipmaps() 77 int w = surface.width; in allocateMipmaps() 78 int h = surface.height; in allocateMipmaps() 109 return surface; in mip() 122 if (mSize && surface.data) { in setSurface() 123 free(surface.data); in setSurface() [all …]
|
/frameworks/native/opengl/tests/swapinterval/ |
D | swapinterval.cpp | 43 EGLSurface surface; in main() local 70 surface = eglCreateWindowSurface(dpy, config, window, NULL); in main() 71 if (surface == EGL_NO_SURFACE) { in main() 83 eglMakeCurrent(dpy, surface, surface, context); in main() 84 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); in main() 85 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); in main() 99 eglSwapBuffers(dpy, surface); in main() 111 eglSwapBuffers(dpy, surface); in main() 114 eglSwapBuffers(dpy, surface); in main()
|
/frameworks/base/services/java/com/android/server/wm/ |
D | BlackFrame.java | 37 final SurfaceControl surface; field in BlackFrame.BlackSurface 48 surface = new WindowStateAnimator.SurfaceTrace(session, "BlackSurface(" in BlackSurface() 52 surface = new SurfaceControl(session, "BlackSurface", in BlackSurface() 56 surface.setAlpha(1); in BlackSurface() 57 surface.setLayerStack(layerStack); in BlackSurface() 58 surface.setLayer(layer); in BlackSurface() 59 surface.show(); in BlackSurface() 62 " BLACK " + surface + ": CREATE layer=" + layer); in BlackSurface() 66 surface.setAlpha(alpha); in setAlpha() 73 surface.setPosition(mTmpFloats[Matrix.MTRANS_X], in setMatrix() [all …]
|
/frameworks/native/opengl/tests/finish/ |
D | finish.cpp | 45 EGLSurface surface; in main() local 61 surface = eglCreateWindowSurface(dpy, config, window, NULL); in main() 63 eglMakeCurrent(dpy, surface, surface, context); in main() 64 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); in main() 65 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); in main() 113 eglSwapBuffers(dpy, surface); in main() 127 eglSwapBuffers(dpy, surface); in main() 142 eglSwapBuffers(dpy, surface); in main() 157 eglSwapBuffers(dpy, surface); in main() 174 eglSwapBuffers(dpy, surface); in main() [all …]
|
/frameworks/native/opengl/tests/gl_perf/ |
D | gl2_perf.cpp | 57 static EGLSurface surface; variable 98 surface = eglCreateWindowSurface(dpy, myConfig, window, NULL); in main() 100 if (surface == EGL_NO_SURFACE) { in main() 111 returnValue = eglMakeCurrent(dpy, surface, surface, context); in main() 116 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); in main() 118 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); in main() 126 eglSwapBuffers(dpy, surface); in main() 134 eglSwapBuffers(dpy, surface); in ptSwap()
|
/frameworks/base/core/jni/ |
D | android_view_HardwareRenderer.cpp | 33 EGLAPI void EGLAPIENTRY eglBeginFrame(EGLDisplay dpy, EGLSurface surface); 65 EGLSurface surface = eglGetCurrentSurface(EGL_DRAW); in android_view_HardwareRenderer_preserveBackBuffer() local 68 eglSurfaceAttrib(display, surface, EGL_SWAP_BEHAVIOR, EGL_BUFFER_PRESERVED); in android_view_HardwareRenderer_preserveBackBuffer() 80 EGLSurface surface = eglGetCurrentSurface(EGL_DRAW); in android_view_HardwareRenderer_isBackBufferPreserved() local 84 eglQuerySurface(display, surface, EGL_SWAP_BEHAVIOR, &value); in android_view_HardwareRenderer_isBackBufferPreserved() 109 EGLSurface surface = eglGetCurrentSurface(EGL_DRAW); in android_view_HardwareRenderer_beginFrame() local 115 eglQuerySurface(display, surface, EGL_WIDTH, &value); in android_view_HardwareRenderer_beginFrame() 118 eglQuerySurface(display, surface, EGL_HEIGHT, &value); in android_view_HardwareRenderer_beginFrame() 124 eglBeginFrame(display, surface); in android_view_HardwareRenderer_beginFrame()
|
D | android_view_Surface.cpp | 112 sp<Surface> surface(new Surface(bufferProducer, true)); in android_view_Surface_createFromIGraphicBufferProducer() local 113 if (surface == NULL) { in android_view_Surface_createFromIGraphicBufferProducer() 117 …jobject surfaceObj = env->NewObject(gSurfaceClassInfo.clazz, gSurfaceClassInfo.ctor, surface.get()… in android_view_Surface_createFromIGraphicBufferProducer() 126 surface->incStrong(&sRefBaseOwner); in android_view_Surface_createFromIGraphicBufferProducer() 147 sp<Surface> surface(new Surface(producer, true)); in nativeCreateFromSurfaceTexture() local 148 if (surface == NULL) { in nativeCreateFromSurfaceTexture() 153 surface->incStrong(&sRefBaseOwner); in nativeCreateFromSurfaceTexture() 154 return int(surface.get()); in nativeCreateFromSurfaceTexture() 204 sp<Surface> surface(reinterpret_cast<Surface *>(nativeObject)); in nativeLockCanvas() local 206 if (!isSurfaceValid(surface)) { in nativeLockCanvas() [all …]
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
D | GLEnvironment.java | 102 public int registerSurface(Surface surface) { in registerSurface() argument 103 int result = nativeAddSurface(surface); in registerSurface() 105 throw new RuntimeException("Error registering surface " + surface + "!"); in registerSurface() 111 Surface surface = new Surface(surfaceTexture); in registerSurfaceTexture() local 112 int result = nativeAddSurfaceWidthHeight(surface, width, height); in registerSurfaceTexture() 113 surface.release(); in registerSurfaceTexture() 171 private native int nativeAddSurface(Surface surface); in nativeAddSurface() argument 173 private native int nativeAddSurfaceWidthHeight(Surface surface, int width, int height); in nativeAddSurfaceWidthHeight() argument
|
/frameworks/base/graphics/java/android/renderscript/ |
D | RSTextureView.java | 75 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable() argument 77 mSurfaceTexture = surface; in onSurfaceTextureAvailable() 88 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged() argument 90 mSurfaceTexture = surface; in onSurfaceTextureSizeChanged() 101 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed() argument 103 mSurfaceTexture = surface; in onSurfaceTextureDestroyed() 116 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated() argument 118 mSurfaceTexture = surface; in onSurfaceTextureUpdated()
|
/frameworks/native/opengl/tests/filter/ |
D | filter.cpp | 37 EGLSurface surface; in main() local 52 surface = eglCreateWindowSurface(dpy, config, window, NULL); in main() 57 surface = eglCreatePbufferSurface(dpy, config, attribs); in main() 58 if (surface == EGL_NO_SURFACE) { in main() 63 eglMakeCurrent(dpy, surface, surface, context); in main() 64 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); in main() 65 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); in main() 156 eglSwapBuffers(dpy, surface); in main() 182 eglSwapBuffers(dpy, surface); in main()
|
/frameworks/native/opengl/tests/fillrate/ |
D | fillrate.cpp | 44 EGLSurface surface; in main() local 60 surface = eglCreateWindowSurface(dpy, config, window, NULL); in main() 62 eglMakeCurrent(dpy, surface, surface, context); in main() 63 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); in main() 64 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); in main() 124 eglSwapBuffers(dpy, surface); in main() 134 eglSwapBuffers(dpy, surface); in main() 146 eglSwapBuffers(dpy, surface); in main()
|
/frameworks/rs/java/tests/LivePreview/src/com/android/rs/livepreview/ |
D | RsYuv.java | 126 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable() argument 127 android.util.Log.v("cpa", "onSurfaceTextureAvailable " + surface); in onSurfaceTextureAvailable() 128 mSurface = surface; in onSurfaceTextureAvailable() 133 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged() argument 134 android.util.Log.v("cpa", "onSurfaceTextureSizeChanged " + surface); in onSurfaceTextureSizeChanged() 135 mSurface = surface; in onSurfaceTextureSizeChanged() 140 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed() argument 141 android.util.Log.v("cpa", "onSurfaceTextureDestroyed " + surface); in onSurfaceTextureDestroyed() 142 mSurface = surface; in onSurfaceTextureDestroyed() 148 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated() argument
|
/frameworks/native/opengl/tests/linetex/ |
D | linetex.cpp | 45 EGLSurface surface; in main() local 61 surface = eglCreateWindowSurface(dpy, config, window, NULL); in main() 63 eglMakeCurrent(dpy, surface, surface, context); in main() 64 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); in main() 65 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); in main() 109 eglSwapBuffers(dpy, surface); in main()
|
/frameworks/native/opengl/tests/textures/ |
D | textures.cpp | 41 EGLSurface surface; in main() local 57 surface = eglCreateWindowSurface(dpy, config, window, NULL); in main() 59 eglMakeCurrent(dpy, surface, surface, context); in main() 60 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); in main() 61 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); in main() 116 eglSwapBuffers(dpy, surface); in main()
|
/frameworks/native/cmds/flatland/ |
D | GLHelper.cpp | 135 bool GLHelper::makeCurrent(EGLSurface surface) { in makeCurrent() argument 138 result = eglMakeCurrent(mDisplay, surface, surface, mContext); in makeCurrent() 145 eglQuerySurface(mDisplay, surface, EGL_WIDTH, &w); in makeCurrent() 146 eglQuerySurface(mDisplay, surface, EGL_HEIGHT, &h); in makeCurrent() 153 sp<GLConsumer>* glConsumer, EGLSurface* surface, in createSurfaceTexture() argument 166 return createNamedSurfaceTexture(*name, w, h, glConsumer, surface); in createSurfaceTexture() 169 void GLHelper::destroySurface(EGLSurface* surface) { in destroySurface() argument 170 if (eglGetCurrentSurface(EGL_READ) == *surface || in destroySurface() 171 eglGetCurrentSurface(EGL_DRAW) == *surface) { in destroySurface() 175 eglDestroySurface(mDisplay, *surface); in destroySurface() [all …]
|
D | GLHelper.h | 52 bool makeCurrent(EGLSurface surface); 55 sp<GLConsumer>* surfaceTexture, EGLSurface* surface, 59 sp<SurfaceControl>* surfaceControl, EGLSurface* surface); 61 void destroySurface(EGLSurface* surface); 63 bool swapBuffers(EGLSurface surface); 72 sp<GLConsumer>* surfaceTexture, EGLSurface* surface);
|
/frameworks/native/services/surfaceflinger/tests/resize/ |
D | resize.cpp | 44 sp<Surface> surface = surfaceControl->getSurface(); in main() local 51 surface->lock(&outBuffer, NULL); in main() 54 surface->unlockAndPost(); in main() 56 surface->lock(&outBuffer); in main() 58 surface->unlockAndPost(); in main()
|
/frameworks/base/opengl/java/android/opengl/ |
D | EGL14.java | 254 EGLSurface surface; in eglCreateWindowSurface() local 256 surface = _eglCreateWindowSurface(dpy, config, sur, attrib_list, offset); in eglCreateWindowSurface() 258 surface = _eglCreateWindowSurfaceTexture(dpy, config, in eglCreateWindowSurface() 267 return surface; in eglCreateWindowSurface() 292 EGLSurface surface in eglDestroySurface() argument 299 EGLSurface surface, in eglQuerySurface() argument 341 EGLSurface surface, in eglSurfaceAttrib() argument 350 EGLSurface surface, in eglBindTexImage() argument 358 EGLSurface surface, in eglReleaseTexImage() argument 436 EGLSurface surface in eglSwapBuffers() argument [all …]
|
/frameworks/native/opengl/tests/angeles/ |
D | app-linux.cpp | 134 EGLSurface surface; in initGraphics() local 150 surface = eglCreateWindowSurface(dpy, config, window, NULL); in initGraphics() 153 fprintf(stderr,"surface = %p\n", surface); in initGraphics() 159 eglMakeCurrent(dpy, surface, surface, context); in initGraphics() 162 eglQuerySurface(dpy, surface, EGL_WIDTH, &sWindowWidth); in initGraphics() 163 eglQuerySurface(dpy, surface, EGL_HEIGHT, &sWindowHeight); in initGraphics() 166 sEglSurface = surface; in initGraphics()
|
/frameworks/native/opengl/libs/EGL/ |
D | eglApi.cpp | 507 EGLSurface surface = cnx->egl.eglCreateWindowSurface( in eglCreateWindowSurface() local 509 if (surface != EGL_NO_SURFACE) { in eglCreateWindowSurface() 511 surface, cnx); in eglCreateWindowSurface() 531 EGLSurface surface = cnx->egl.eglCreatePixmapSurface( in eglCreatePixmapSurface() local 533 if (surface != EGL_NO_SURFACE) { in eglCreatePixmapSurface() 535 surface, cnx); in eglCreatePixmapSurface() 550 EGLSurface surface = cnx->egl.eglCreatePbufferSurface( in eglCreatePbufferSurface() local 552 if (surface != EGL_NO_SURFACE) { in eglCreatePbufferSurface() 554 surface, cnx); in eglCreatePbufferSurface() 561 EGLBoolean eglDestroySurface(EGLDisplay dpy, EGLSurface surface) in eglDestroySurface() argument [all …]
|
/frameworks/base/media/mca/filterfw/native/core/ |
D | gl_env.cpp | 94 surface() != eglGetCurrentSurface(EGL_DRAW)) { in Activate() 96 if (context() == EGL_NO_CONTEXT || surface() == EGL_NO_SURFACE) in Activate() 101 eglMakeCurrent(display(), surface(), surface(), context()); in Activate() 109 const bool result = eglSwapBuffers(display(), surface()) == EGL_TRUE; in SwapBuffers() 123 (surface() != EGL_NO_SURFACE); in InitWithCurrentContext() 189 && surface() == eglGetCurrentSurface(EGL_DRAW); in IsActive() 200 int GLEnv::AddWindowSurface(const EGLSurface& surface, WindowHandle* window_handle) { in AddWindowSurface() argument 202 surfaces_[id] = SurfaceWindowPair(surface, window_handle); in AddWindowSurface() 206 int GLEnv::AddSurface(const EGLSurface& surface) { in AddSurface() argument 207 return AddWindowSurface(surface, NULL); in AddSurface() [all …]
|
/frameworks/av/camera/camera2/ |
D | CaptureRequest.cpp | 73 sp<Surface> surface; in readFromParcel() local 78 surface = new Surface(gbp); in readFromParcel() 81 mSurfaceList.push_back(surface); in readFromParcel() 105 sp<Surface> surface = mSurfaceList[i]; in writeToParcel() local 108 if (surface != 0) { in writeToParcel() 109 binder = surface->getIGraphicBufferProducer()->asBinder(); in writeToParcel()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | CanvasTextureViewActivity.java | 50 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable() argument 56 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged() argument 61 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed() argument 67 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated() argument 75 public RenderingThread(TextureView surface) { in RenderingThread() argument 76 mSurface = surface; in RenderingThread()
|
/frameworks/native/opengl/tools/glgen/specs/egl/ |
D | EGL14.spec | 12 EGLBoolean eglDestroySurface ( EGLDisplay dpy, EGLSurface surface ) 13 EGLBoolean eglQuerySurface ( EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint *value ) 19 EGLBoolean eglSurfaceAttrib ( EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value ) 20 EGLBoolean eglBindTexImage ( EGLDisplay dpy, EGLSurface surface, EGLint buffer ) 21 EGLBoolean eglReleaseTexImage ( EGLDisplay dpy, EGLSurface surface, EGLint buffer ) 32 EGLBoolean eglSwapBuffers ( EGLDisplay dpy, EGLSurface surface ) 33 EGLBoolean eglCopyBuffers ( EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target )
|
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/ |
D | BlockingGLTextureView.java | 66 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, in onSurfaceTextureAvailable() argument 68 mRenderThread.setSurface(surface); in onSurfaceTextureAvailable() 73 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, in onSurfaceTextureSizeChanged() argument 79 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed() argument 87 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated() argument 192 public boolean createSurface(SurfaceTexture surface) { in createSurface() argument 215 if (surface != null) { in createSurface() 216 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, surface, null); in createSurface() 343 public void setSurface(SurfaceTexture surface) { in setSurface() argument 346 if (surface != null) { in setSurface() [all …]
|