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] Set the bounds of Sbplayer via video_painter.cc #4385

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

borongc
Copy link
Contributor

@borongc borongc commented Nov 6, 2024

SbPlayer needs SbPlayerSetBounds to update the bounds. This PR updates the bounds in blink via video_painter.cc for SbPlayer.

Unlike Cobalt, Chromium updates the bounds of video frequently, resulting in multiple calls of SbPlayerSetBounds per video session for SbPlayer. We should revisit it if the multiple calls of SbPlayerSetBounds cause performance issues.

b/376320224

@borongc borongc requested a review from a team as a code owner November 6, 2024 22:25
@borongc borongc force-pushed the android_sbplayer_bound branch 3 times, most recently from f3c2698 to 36d51af Compare November 6, 2024 22:42
@borongc borongc requested review from sideb0ard, jasonzhangxx, xiaomings and osagie98 and removed request for briantting November 6, 2024 22:43
@borongc borongc force-pushed the android_sbplayer_bound branch 8 times, most recently from fba14f7 to 7402087 Compare November 11, 2024 19:40
@borongc borongc force-pushed the android_sbplayer_bound branch 2 times, most recently from 001b361 to bb12930 Compare November 15, 2024 00:13
@borongc borongc enabled auto-merge (squash) November 15, 2024 00:26
Copy link
Member

@kaidokert kaidokert left a comment

Choose a reason for hiding this comment

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

lgtm from 3p / upstream modifications perspective

SbPlayer needs SbPlayerSetBounds to update the bounds. This PR updates the bounds in blink via video_painter.cc for SbPlayer.

Unlike Cobalt, Chromium upupdates the bounds of video frequently, resulting in multiple calls per video session for SbPlayer. We should revisit it if SbPlayerSetBounds causes performance issues.

b/376320224
@borongc borongc merged commit 9b6a247 into youtube:main Nov 15, 2024
54 of 55 checks passed
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.

5 participants