Skip to content

Document EGL lifecycle APIs - #521

Open
jonathanpeppers wants to merge 2 commits into
mainfrom
jonathanpeppers-document-khronos-egl-apis
Open

Document EGL lifecycle APIs#521
jonathanpeppers wants to merge 2 commits into
mainfrom
jonathanpeppers-document-khronos-egl-apis

Conversation

@jonathanpeppers

@jonathanpeppers jonathanpeppers commented Aug 15, 2026

Copy link
Copy Markdown
Member

Refs #307

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR incrementally improves the generated XML documentation for Javax.Microedition.Khronos.Egl.IEGL10 by replacing To be added. placeholders with source-backed descriptions for key EGL lifecycle, current-state query, and error-retrieval members.

Changes:

  • Added summaries/returns docs for current-state query members (EglGetCurrentContext, EglGetCurrentDisplay, EglGetCurrentSurface).
  • Added lifecycle/error contract docs for EglGetDisplay, EglInitialize, EglMakeCurrent, EglSwapBuffers, EglTerminate, and EglGetError.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread docs/xml/Javax.Microedition.Khronos.Egl/IEGL10.xml Outdated
Comment thread docs/xml/Javax.Microedition.Khronos.Egl/IEGL10.xml
Comment thread docs/xml/Javax.Microedition.Khronos.Egl/IEGL10.xml Outdated
Refs #307

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@jonathanpeppers

Copy link
Copy Markdown
Member Author

@dalexsoto review

@dalexsoto dalexsoto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Three Android-specific contract issues remain in docs/xml/Javax.Microedition.Khronos.Egl/IEGL10.xml:

  • The EglGetDisplay parameter text says native_display selects the display, but Android’s JNI implementation ignores this argument and always calls eglGetDisplay(EGL_DEFAULT_DISPLAY). Please document the effective Android behavior instead.
  • EglGetCurrentSurface accepts only EglRead or EglDraw; every other value throws IllegalArgumentException before EGL is called. Please document that exception rather than leaving the invalid-value behavior implicit.
  • EglInitialize, EglMakeCurrent, EglSwapBuffers, and EglTerminate have nullable managed parameters, but Android throws IllegalArgumentException for null required arguments (and for a non-null major_minor shorter than two elements) instead of returning false. Please add the missing exception contracts so callers are not misled by the return-value documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants