Loading libs/surfaceflinger/DisplayHardware/DisplayHardware.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -183,7 +183,7 @@ void DisplayHardware::init(uint32_t dpy) char property[PROPERTY_VALUE_MAX]; /* Read density from build-specific ro.sf.lcd_density property * except if it is overriden by qemu.sf.lcd_density. * except if it is overridden by qemu.sf.lcd_density. */ if (property_get("qemu.sf.lcd_density", property, NULL) <= 0) { if (property_get("ro.sf.lcd_density", property, NULL) <= 0) { Loading opengl/libs/EGL/egl.cpp +9 −11 Original line number Diff line number Diff line Loading @@ -1363,34 +1363,32 @@ EGLSurface eglCreatePbufferFromClientBuffer( EGLBoolean eglLockSurfaceKHR(EGLDisplay dpy, EGLSurface surface, const EGLint *attrib_list) { EGLBoolean result = EGL_FALSE; if (!validate_display_surface(dpy, surface)) return result; return EGL_FALSE; egl_display_t const * const dp = get_display(dpy); egl_surface_t const * const s = get_surface(surface); if (s->cnx->hooks->egl.eglLockSurfaceKHR) { result = s->cnx->hooks->egl.eglLockSurfaceKHR( return s->cnx->hooks->egl.eglLockSurfaceKHR( dp->dpys[s->impl], s->surface, attrib_list); } return result; return setError(EGL_BAD_DISPLAY, EGL_FALSE); } EGLBoolean eglUnlockSurfaceKHR(EGLDisplay dpy, EGLSurface surface) { EGLBoolean result = EGL_FALSE; if (!validate_display_surface(dpy, surface)) return result; return EGL_FALSE; egl_display_t const * const dp = get_display(dpy); egl_surface_t const * const s = get_surface(surface); if (s->cnx->hooks->egl.eglUnlockSurfaceKHR) { result = s->cnx->hooks->egl.eglUnlockSurfaceKHR( return s->cnx->hooks->egl.eglUnlockSurfaceKHR( dp->dpys[s->impl], s->surface); } return result; return setError(EGL_BAD_DISPLAY, EGL_FALSE); } EGLImageKHR eglCreateImageKHR(EGLDisplay dpy, EGLContext ctx, EGLenum target, Loading Loading @@ -1474,7 +1472,7 @@ EGLBoolean eglDestroyImageKHR(EGLDisplay dpy, EGLImageKHR img) delete image; return EGL_FALSE; return EGL_TRUE; } Loading @@ -1493,7 +1491,7 @@ EGLBoolean eglSetSwapRectangleANDROID(EGLDisplay dpy, EGLSurface draw, return s->cnx->hooks->egl.eglSetSwapRectangleANDROID(dp->dpys[s->impl], s->surface, left, top, width, height); } return EGL_FALSE; return setError(EGL_BAD_DISPLAY, NULL); } EGLClientBuffer eglGetRenderBufferANDROID(EGLDisplay dpy, EGLSurface draw) Loading @@ -1506,5 +1504,5 @@ EGLClientBuffer eglGetRenderBufferANDROID(EGLDisplay dpy, EGLSurface draw) return s->cnx->hooks->egl.eglGetRenderBufferANDROID(dp->dpys[s->impl], s->surface); } return 0; return setError(EGL_BAD_DISPLAY, (EGLClientBuffer*)0); } Loading
libs/surfaceflinger/DisplayHardware/DisplayHardware.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -183,7 +183,7 @@ void DisplayHardware::init(uint32_t dpy) char property[PROPERTY_VALUE_MAX]; /* Read density from build-specific ro.sf.lcd_density property * except if it is overriden by qemu.sf.lcd_density. * except if it is overridden by qemu.sf.lcd_density. */ if (property_get("qemu.sf.lcd_density", property, NULL) <= 0) { if (property_get("ro.sf.lcd_density", property, NULL) <= 0) { Loading
opengl/libs/EGL/egl.cpp +9 −11 Original line number Diff line number Diff line Loading @@ -1363,34 +1363,32 @@ EGLSurface eglCreatePbufferFromClientBuffer( EGLBoolean eglLockSurfaceKHR(EGLDisplay dpy, EGLSurface surface, const EGLint *attrib_list) { EGLBoolean result = EGL_FALSE; if (!validate_display_surface(dpy, surface)) return result; return EGL_FALSE; egl_display_t const * const dp = get_display(dpy); egl_surface_t const * const s = get_surface(surface); if (s->cnx->hooks->egl.eglLockSurfaceKHR) { result = s->cnx->hooks->egl.eglLockSurfaceKHR( return s->cnx->hooks->egl.eglLockSurfaceKHR( dp->dpys[s->impl], s->surface, attrib_list); } return result; return setError(EGL_BAD_DISPLAY, EGL_FALSE); } EGLBoolean eglUnlockSurfaceKHR(EGLDisplay dpy, EGLSurface surface) { EGLBoolean result = EGL_FALSE; if (!validate_display_surface(dpy, surface)) return result; return EGL_FALSE; egl_display_t const * const dp = get_display(dpy); egl_surface_t const * const s = get_surface(surface); if (s->cnx->hooks->egl.eglUnlockSurfaceKHR) { result = s->cnx->hooks->egl.eglUnlockSurfaceKHR( return s->cnx->hooks->egl.eglUnlockSurfaceKHR( dp->dpys[s->impl], s->surface); } return result; return setError(EGL_BAD_DISPLAY, EGL_FALSE); } EGLImageKHR eglCreateImageKHR(EGLDisplay dpy, EGLContext ctx, EGLenum target, Loading Loading @@ -1474,7 +1472,7 @@ EGLBoolean eglDestroyImageKHR(EGLDisplay dpy, EGLImageKHR img) delete image; return EGL_FALSE; return EGL_TRUE; } Loading @@ -1493,7 +1491,7 @@ EGLBoolean eglSetSwapRectangleANDROID(EGLDisplay dpy, EGLSurface draw, return s->cnx->hooks->egl.eglSetSwapRectangleANDROID(dp->dpys[s->impl], s->surface, left, top, width, height); } return EGL_FALSE; return setError(EGL_BAD_DISPLAY, NULL); } EGLClientBuffer eglGetRenderBufferANDROID(EGLDisplay dpy, EGLSurface draw) Loading @@ -1506,5 +1504,5 @@ EGLClientBuffer eglGetRenderBufferANDROID(EGLDisplay dpy, EGLSurface draw) return s->cnx->hooks->egl.eglGetRenderBufferANDROID(dp->dpys[s->impl], s->surface); } return 0; return setError(EGL_BAD_DISPLAY, (EGLClientBuffer*)0); }