OSDN Git Service

glgen: Better support for null arguments in JNI
authorPablo Ceballos <pceballos@google.com>
Fri, 2 Oct 2015 01:25:56 +0000 (18:25 -0700)
committerPablo Ceballos <pceballos@google.com>
Fri, 6 Nov 2015 18:32:55 +0000 (10:32 -0800)
commitb62e242c4c2bdfe84ce28231d2fcc85e79517f8c
tree45b940678439404c5d442cb31ec590d7b9878b84
parent6e20913454d65c233a7b4d51cf12c5c848f7a84d
glgen: Better support for null arguments in JNI

- Modify the checks.spec file format to specify which argument is
  allowed to be null.
- Update the JniCodeEmitter to support passing null arguments for all
  pointer types as well as strings.
- Update the EGL/GLES checks.spec files and stub files to allow null
  arguments through the JNI layer where the spec allows it.

Bug 9321681

Change-Id: I7d8e7319b43da95993516aa3ac5318b971a1ff92
opengl/tools/glgen/specs/egl/checks.spec
opengl/tools/glgen/specs/gles11/checks.spec
opengl/tools/glgen/specs/jsr239/glspec-checks
opengl/tools/glgen/src/JniCodeEmitter.java
opengl/tools/glgen/stubs/egl/eglCreatePbufferFromClientBuffer.cpp
opengl/tools/glgen/stubs/egl/eglCreateWindowSurface.cpp
opengl/tools/glgen/stubs/gles11/glGetActiveAttrib.cpp
opengl/tools/glgen/stubs/gles11/glGetActiveUniform.cpp
opengl/tools/glgen/stubs/gles11/glGetActiveUniformBlockName.cpp
opengl/tools/glgen/stubs/gles11/glGetShaderSource.cpp
opengl/tools/glgen/stubs/gles11/glGetTransformFeedbackVarying.cpp