Skip to content

Add video renderer extension - #6454

Merged
kaidokert merged 1 commit into
youtube:25.lts.1+from
alexanderbobrovnik:b1781-4
Sep 25, 2025
Merged

kaidokert merged 1 commit into
youtube:25.lts.1+from
alexanderbobrovnik:b1781-4

Conversation

@alexanderbobrovnik

Copy link
Copy Markdown
Collaborator

b/178105735

This commit adds extension that allows to replace the default rendering of video frames.

@alexanderbobrovnik
alexanderbobrovnik marked this pull request as ready for review July 17, 2025 14:15
Comment thread starboard/extension/video_renderer.h Resolved
@kaidokert

Copy link
Copy Markdown
Contributor

/gemini review

@kaidokert kaidokert left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Otherwise looks okay to submit, just would be good to take opportunity to unify the naming.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new extension to allow custom video frame rendering. The implementation is a good start, but I have a few important suggestions. In textured_mesh_renderer.cc, the extension pointer should be cached to avoid repeated lookups in the performance-sensitive RenderVBO function. More critically, the new video_renderer.h extension header has a layering violation by depending on Cobalt-specific types. The API should be refactored to use platform-agnostic types to maintain a clean separation between Cobalt and Starboard.

Comment thread starboard/extension/video_renderer.h Resolved
Comment thread starboard/extension/video_renderer.h Resolved
b/178105735

This commit adds extension that allows to replace the default rendering of video frames.
@kaidokert
kaidokert merged commit 485e089 into youtube:25.lts.1+ Sep 25, 2025
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.

4 participants