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:
parent
2151c41df9
commit
62a0a2a8ca
|
@ -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.");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue