summaryrefslogtreecommitdiffstats
path: root/opengl/system/egl/egl.cpp
diff options
context:
space:
mode:
authorPascal Muetschard <pmuetschard@google.com>2015-08-17 13:09:57 -0700
committerPascal Muetschard <pmuetschard@google.com>2015-08-20 15:48:42 +0000
commit7c1d90fdcda89c2db9ae0b9af833c7d4e9eeab9c (patch)
tree4724d493da8c343428697259eb1bb23fb1674830 /opengl/system/egl/egl.cpp
parenta2d76fb4a1967322c3a937c6e8f8f7168a66eda1 (diff)
downloaddevice_generic_goldfish-7c1d90fdcda89c2db9ae0b9af833c7d4e9eeab9c.tar.gz
device_generic_goldfish-7c1d90fdcda89c2db9ae0b9af833c7d4e9eeab9c.tar.bz2
device_generic_goldfish-7c1d90fdcda89c2db9ae0b9af833c7d4e9eeab9c.zip
Implement a couple more surface attributes in eglQuerySurface.
Bug: 23036813 Change-Id: If186283872ce99e44d5db4bcc8b218330815ef88
Diffstat (limited to 'opengl/system/egl/egl.cpp')
-rw-r--r--opengl/system/egl/egl.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/opengl/system/egl/egl.cpp b/opengl/system/egl/egl.cpp
index e9d59ab8..85d4feb7 100644
--- a/opengl/system/egl/egl.cpp
+++ b/opengl/system/egl/egl.cpp
@@ -757,6 +757,15 @@ EGLBoolean eglQuerySurface(EGLDisplay dpy, EGLSurface eglSurface, EGLint attribu
// and we ignore it when creating a PBuffer surface (default is EGL_FALSE)
if (surface->getSurfaceType() & EGL_PBUFFER_BIT) *value = EGL_FALSE;
break;
+ case EGL_MIPMAP_LEVEL:
+ // not modified for a window or pixmap surface
+ // and we ignore it when creating a PBuffer surface (default is 0)
+ if (surface->getSurfaceType() & EGL_PBUFFER_BIT) *value = 0;
+ break;
+ case EGL_MULTISAMPLE_RESOLVE:
+ // ignored when creating the surface, return default
+ *value = EGL_MULTISAMPLE_RESOLVE_DEFAULT;
+ break;
//TODO: complete other attributes
default:
ALOGE("eglQuerySurface %x EGL_BAD_ATTRIBUTE", attribute);