Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[media] Move StarboardRenderer to MojoRenderer #5113

Merged
merged 1 commit into from
Mar 27, 2025

Conversation

borongc
Copy link
Contributor

@borongc borongc commented Mar 19, 2025

Move StarboardRenderer to Gpu thread, and each of StarboardRenderer is ran on PooledSingleThreadTaskRunner. This allows Starboard to access Chrome_InProcGpuThread for graphical tasks.

This PR adds a CreateStarboardRenderer() to the InterfaceFactory mojom with the purpose of running StarboardRenderer on Gpu thread; this forced an implementation in a number of places, namely MediaInterfaceFactory, MediaInterfaceProxy and FramelessMediaInterfaceProxy.

b/394368542
b/378740140
b/405401569

@borongc borongc requested a review from yell0wd0g March 19, 2025 16:51
@borongc borongc force-pushed the sbplayer_in_gpu branch 10 times, most recently from 10d7c58 to 3acdba0 Compare March 21, 2025 19:38
@borongc borongc marked this pull request as ready for review March 21, 2025 19:39
@borongc borongc requested review from a team as code owners March 21, 2025 19:39
@borongc borongc force-pushed the sbplayer_in_gpu branch 6 times, most recently from aa08231 to 0db7fab Compare March 23, 2025 17:21
Copy link
Contributor

@yell0wd0g yell0wd0g left a comment

Choose a reason for hiding this comment

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

Some comments, ran out of time. In general looks good. Is the new code covered by existing unit tests?

@borongc borongc requested a review from yell0wd0g March 25, 2025 22:30
@borongc borongc force-pushed the sbplayer_in_gpu branch 5 times, most recently from 197faeb to 61e88ba Compare March 26, 2025 20:36
Copy link
Contributor

@yell0wd0g yell0wd0g left a comment

Choose a reason for hiding this comment

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

LGTM! Apologies for the slow review.

I left a few comments, nothing major.

@borongc borongc force-pushed the sbplayer_in_gpu branch 4 times, most recently from 16af8d2 to 598a006 Compare March 27, 2025 17:32
Move StarboardRenderer to Gpu thread, and each of StarboardRenderer is ran on PooledSingleThreadTaskRunner. This allows Starboard to access Chrome_InProcGpuThread for graphical tasks.

b/394368542
@borongc borongc merged commit df40583 into youtube:main Mar 27, 2025
151 checks passed
@borongc borongc deleted the sbplayer_in_gpu branch March 27, 2025 19:09
@borongc borongc added the cp-26.android Cherry Pick to the 26.android branch label Mar 27, 2025
cobalt-github-releaser-bot pushed a commit that referenced this pull request Mar 27, 2025
Move StarboardRenderer to Gpu thread, and each of StarboardRenderer is
ran on PooledSingleThreadTaskRunner. This allows Starboard to access
`Chrome_InProcGpuThread` for graphical tasks.

This PR adds a `CreateStarboardRenderer()` to the InterfaceFactory mojom
with the purpose of running StarboardRenderer on Gpu thread; this forced
an implementation in a number of places, namely MediaInterfaceFactory,
MediaInterfaceProxy and FramelessMediaInterfaceProxy.

b/394368542
b/378740140
b/405401569

(cherry picked from commit df40583)
borongc added a commit that referenced this pull request Mar 28, 2025
…5228)

Refer to the original PR: #5113

Move StarboardRenderer to Gpu thread, and each of StarboardRenderer is
ran on PooledSingleThreadTaskRunner. This allows Starboard to access
`Chrome_InProcGpuThread` for graphical tasks.

This PR adds a `CreateStarboardRenderer()` to the InterfaceFactory mojom
with the purpose of running StarboardRenderer on Gpu thread; this forced
an implementation in a number of places, namely MediaInterfaceFactory,
MediaInterfaceProxy and FramelessMediaInterfaceProxy.

b/394368542
b/378740140
b/405401569

Co-authored-by: Bo-Rong Chen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cp-26.android Cherry Pick to the 26.android branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants