Updated eglCreateWindowSurface stub for glgen

Updates the stub for eglCreateWindowSurface
to accept Surface as a native window.

Change-Id: I9ff7f68ad9ae4ff10439588aaef138b4564d959e
This commit is contained in:
Thomas Tafertshofer 2012-08-09 11:30:58 -07:00
parent 2151c41df9
commit 62a0a2a8ca
1 changed files with 3 additions and 1 deletions

View File

@ -29,6 +29,8 @@
} else if (win instanceof SurfaceHolder) {
SurfaceHolder holder = (SurfaceHolder)win;
sur = holder.getSurface();
} else if (win instanceof Surface) {
sur = (Surface) win;
}
EGLSurface surface;
@ -40,7 +42,7 @@
} else {
throw new java.lang.UnsupportedOperationException(
"eglCreateWindowSurface() can only be called with an instance of " +
"SurfaceView, SurfaceTexture or SurfaceHolder at the moment, " +
"Surface, SurfaceView, SurfaceTexture or SurfaceHolder at the moment, " +
"this will be fixed later.");
}