OSDN Git Service

SurfaceTexture: disallow unsupported uses.
authorJamie Gennis <jgennis@google.com>
Mon, 14 Mar 2011 22:34:04 +0000 (15:34 -0700)
committerJamie Gennis <jgennis@google.com>
Tue, 15 Mar 2011 17:37:37 +0000 (10:37 -0700)
commit5c0c93a8c49b4053744efb8953b915fa7f0923a5
tree445ba1c3d421649c368af25e7212406a28fd1bbc
parentf9a20d77fa921d6f3556e60217a67e5756f4ece4
SurfaceTexture: disallow unsupported uses.

This change makes the ANativeWindow_lock NDK function error out if it is
passed an ANativeWindow with a concrete type that is not Surface.  It
also makes eglCreateWindowSurface fail if it is passed a
SurfaceTextureClient as its 'window' argument.

Bug: 4087277
Change-Id: Ie68c50c52d88f72d8a387f6c094908044c83a88c
libs/gui/tests/SurfaceTextureClient_test.cpp
opengl/libs/EGL/egl.cpp