/frameworks/base/libs/hwui/renderthread/ |
D | EglManager.cpp | 29 EGLAPI void EGLAPIENTRY eglBeginFrame(EGLDisplay dpy, EGLSurface surface); 196 EGLSurface surface = eglCreateWindowSurface(mEglDisplay, mEglConfig, window, NULL); in createSurface() local 197 LOG_ALWAYS_FATAL_IF(surface == EGL_NO_SURFACE, in createSurface() 200 return surface; in createSurface() 203 void EglManager::destroySurface(EGLSurface surface) { in destroySurface() argument 204 if (isCurrent(surface)) { in destroySurface() 207 if (!eglDestroySurface(mEglDisplay, surface)) { in destroySurface() 208 ALOGW("Failed to destroy surface %p, error=%s", (void*)surface, egl_error_str()); in destroySurface() 233 bool EglManager::makeCurrent(EGLSurface surface) { in makeCurrent() argument 234 if (isCurrent(surface)) return false; in makeCurrent() [all …]
|
D | EglManager.h | 42 void destroySurface(EGLSurface surface); 46 bool isCurrent(EGLSurface surface) { return mCurrentSurface == surface; } in isCurrent() argument 48 bool makeCurrent(EGLSurface surface); 49 void beginFrame(EGLSurface surface, EGLint* width, EGLint* height); 50 bool swapBuffers(EGLSurface surface); 54 bool setPreserveBuffer(EGLSurface surface, bool preserve);
|
/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/base/core/java/android/hardware/camera2/legacy/ |
D | LegacyCameraDevice.java | 385 for (Surface surface : request.getTargets()) { in submitRequestList() 386 if (surface == null) { in submitRequestList() 393 } else if (!containsSurfaceId(surface, surfaceIds)) { in submitRequestList() 527 public static Size getSurfaceSize(Surface surface) throws BufferQueueAbandonedException { in getSurfaceSize() argument 528 checkNotNull(surface); in getSurfaceSize() 531 LegacyExceptionUtils.throwOnError(nativeDetectSurfaceDimens(surface, /*out*/dimens)); in getSurfaceSize() 552 static int detectSurfaceUsageFlags(Surface surface) { in detectSurfaceUsageFlags() argument 553 checkNotNull(surface); in detectSurfaceUsageFlags() 554 return nativeDetectSurfaceUsageFlags(surface); in detectSurfaceUsageFlags() 560 public static int detectSurfaceType(Surface surface) throws BufferQueueAbandonedException { in detectSurfaceType() argument [all …]
|
/frameworks/base/core/jni/ |
D | android_view_Surface.cpp | 113 sp<Surface> surface(new Surface(bufferProducer, true)); in android_view_Surface_createFromIGraphicBufferProducer() local 114 if (surface == NULL) { in android_view_Surface_createFromIGraphicBufferProducer() 119 gSurfaceClassInfo.ctor, (jlong)surface.get()); in android_view_Surface_createFromIGraphicBufferProducer() 128 surface->incStrong(&sRefBaseOwner); in android_view_Surface_createFromIGraphicBufferProducer() 149 sp<Surface> surface(new Surface(producer, true)); in nativeCreateFromSurfaceTexture() local 150 if (surface == NULL) { in nativeCreateFromSurfaceTexture() 155 surface->incStrong(&sRefBaseOwner); in nativeCreateFromSurfaceTexture() 156 return jlong(surface.get()); in nativeCreateFromSurfaceTexture() 197 sp<Surface> surface(reinterpret_cast<Surface *>(nativeObject)); in nativeLockCanvas() local 199 if (!isSurfaceValid(surface)) { in nativeLockCanvas() [all …]
|
/frameworks/base/services/core/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 62 surface = eglCreateWindowSurface(dpy, config, window, NULL); in main() 64 eglMakeCurrent(dpy, surface, surface, context); in main() 65 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); in main() 66 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); in main() 114 eglSwapBuffers(dpy, surface); in main() 128 eglSwapBuffers(dpy, surface); in main() 143 eglSwapBuffers(dpy, surface); in main() 158 eglSwapBuffers(dpy, surface); in main() 175 eglSwapBuffers(dpy, surface); in main() [all …]
|
/frameworks/native/opengl/tests/swapinterval/ |
D | swapinterval.cpp | 43 EGLSurface surface; in main() local 71 surface = eglCreateWindowSurface(dpy, config, window, NULL); in main() 72 if (surface == EGL_NO_SURFACE) { in main() 84 eglMakeCurrent(dpy, surface, surface, context); in main() 85 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); in main() 86 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); in main() 100 eglSwapBuffers(dpy, surface); in main() 112 eglSwapBuffers(dpy, surface); in main() 115 eglSwapBuffers(dpy, surface); in main()
|
/frameworks/base/rs/java/android/renderscript/ |
D | RSTextureView.java | 68 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable() argument 70 mSurfaceTexture = surface; in onSurfaceTextureAvailable() 81 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged() argument 83 mSurfaceTexture = surface; in onSurfaceTextureSizeChanged() 94 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed() argument 96 mSurfaceTexture = surface; in onSurfaceTextureDestroyed() 109 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated() argument 111 mSurfaceTexture = surface; in onSurfaceTextureUpdated()
|
/frameworks/native/opengl/tests/gl_perf/ |
D | gl2_perf.cpp | 57 static EGLSurface surface; variable 99 surface = eglCreateWindowSurface(dpy, myConfig, window, NULL); in main() 101 if (surface == EGL_NO_SURFACE) { in main() 112 returnValue = eglMakeCurrent(dpy, surface, surface, context); in main() 117 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); in main() 119 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); in main() 127 eglSwapBuffers(dpy, surface); in main() 135 eglSwapBuffers(dpy, surface); in ptSwap()
|
/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/native/opengl/tests/filter/ |
D | filter.cpp | 37 EGLSurface surface; in main() local 54 surface = eglCreateWindowSurface(dpy, config, window, NULL); in main() 59 surface = eglCreatePbufferSurface(dpy, config, attribs); in main() 60 if (surface == EGL_NO_SURFACE) { in main() 65 eglMakeCurrent(dpy, surface, surface, context); in main() 66 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); in main() 67 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); in main() 158 eglSwapBuffers(dpy, surface); in main() 184 eglSwapBuffers(dpy, surface); in main()
|
/frameworks/base/core/java/android/hardware/display/ |
D | VirtualDisplay.java | 42 IVirtualDisplayCallback token, Surface surface) { in VirtualDisplay() argument 46 mSurface = surface; in VirtualDisplay() 75 public void setSurface(Surface surface) { in setSurface() argument 76 if (mSurface != surface) { in setSurface() 77 mGlobal.setVirtualDisplaySurface(mToken, surface); in setSurface() 78 mSurface = surface; in setSurface()
|
/frameworks/native/opengl/tests/fillrate/ |
D | fillrate.cpp | 44 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() 125 eglSwapBuffers(dpy, surface); in main() 135 eglSwapBuffers(dpy, surface); in main() 147 eglSwapBuffers(dpy, surface); in main()
|
/frameworks/native/opengl/tests/linetex/ |
D | linetex.cpp | 43 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() 108 eglSwapBuffers(dpy, surface); in main()
|
/frameworks/native/opengl/tests/textures/ |
D | textures.cpp | 41 EGLSurface surface; in main() local 58 surface = eglCreateWindowSurface(dpy, config, window, NULL); in main() 60 eglMakeCurrent(dpy, surface, surface, context); in main() 61 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); in main() 62 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); in main() 117 eglSwapBuffers(dpy, surface); in main()
|
/frameworks/native/cmds/flatland/ |
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);
|
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 …]
|
/frameworks/rs/java/tests/LivePreview/src/com/android/rs/livepreview/ |
D | RsYuv.java | 127 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable() argument 128 android.util.Log.v("cpa", "onSurfaceTextureAvailable " + surface); in onSurfaceTextureAvailable() 129 mSurface = new Surface(surface); in onSurfaceTextureAvailable() 134 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged() argument 135 android.util.Log.v("cpa", "onSurfaceTextureSizeChanged " + surface); in onSurfaceTextureSizeChanged() 136 mSurface = new Surface(surface); in onSurfaceTextureSizeChanged() 141 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed() argument 142 android.util.Log.v("cpa", "onSurfaceTextureDestroyed " + surface); in onSurfaceTextureDestroyed() 149 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated() argument
|
/frameworks/base/opengl/java/android/opengl/ |
D | EGL14.java | 261 EGLSurface surface; in eglCreateWindowSurface() local 263 surface = _eglCreateWindowSurface(dpy, config, sur, attrib_list, offset); in eglCreateWindowSurface() 265 surface = _eglCreateWindowSurfaceTexture(dpy, config, in eglCreateWindowSurface() 274 return surface; in eglCreateWindowSurface() 299 EGLSurface surface in eglDestroySurface() argument 306 EGLSurface surface, in eglQuerySurface() argument 360 EGLSurface surface, in eglSurfaceAttrib() argument 369 EGLSurface surface, in eglBindTexImage() argument 377 EGLSurface surface, in eglReleaseTexImage() argument 455 EGLSurface surface in eglSwapBuffers() argument [all …]
|
/frameworks/native/opengl/libs/EGL/ |
D | eglApi.cpp | 509 EGLSurface surface = cnx->egl.eglCreateWindowSurface( in eglCreateWindowSurface() local 511 if (surface != EGL_NO_SURFACE) { in eglCreateWindowSurface() 513 surface, cnx); in eglCreateWindowSurface() 533 EGLSurface surface = cnx->egl.eglCreatePixmapSurface( in eglCreatePixmapSurface() local 535 if (surface != EGL_NO_SURFACE) { in eglCreatePixmapSurface() 537 surface, cnx); in eglCreatePixmapSurface() 552 EGLSurface surface = cnx->egl.eglCreatePbufferSurface( in eglCreatePbufferSurface() local 554 if (surface != EGL_NO_SURFACE) { in eglCreatePbufferSurface() 556 surface, cnx); in eglCreatePbufferSurface() 563 EGLBoolean eglDestroySurface(EGLDisplay dpy, EGLSurface surface) in eglDestroySurface() argument [all …]
|
/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/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/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() 192 && surface() == eglGetCurrentSurface(EGL_DRAW); in IsActive() 203 int GLEnv::AddWindowSurface(const EGLSurface& surface, WindowHandle* window_handle) { in AddWindowSurface() argument 205 surfaces_[id] = SurfaceWindowPair(surface, window_handle); in AddWindowSurface() 209 int GLEnv::AddSurface(const EGLSurface& surface) { in AddSurface() argument 210 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()
|