Skip to content

Commit

Permalink
Cherry pick PR #3056: Refine player configuration extension comment (#…
Browse files Browse the repository at this point in the history
…3064)

Refer to the original PR: #3056

b/311035005

Co-authored-by: Jason <[email protected]>
  • Loading branch information
cobalt-github-releaser-bot and jasonzhangxx committed Apr 24, 2024
1 parent 0fab5f4 commit 1f9e541
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions starboard/extension/player_configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,17 @@ typedef struct StarboardExtensionPlayerConfigurationApi {

// The fields below this point were added in version 1 or later.

// This is used to ask the underlying starboard player using decode
// to texture mode to render video frames when it's available, no matter
// what output mode is passed in SbPlayerCreate(). This function can be
// null.
// This is used to ask the underlying starboard player prefer to use decode
// to texture mode to render video frames when it's available. This function
// can be null.
// When decode to texture mode is prefereed, SbPlayerGetPreferredOutputMode()
// should return kSbPlayerOutputModeDecodeToTexture if it's supported.
void (*SetDecodeToTexturePreferred)(bool preferred);

// This is used to ask the underlying starboard player using tunnel mode
// when it's available. This function can be null.
// This is used to ask the underlying starboard player prefer to use tunnel
// mode when it's available. This function can be null.
// When tunnel mode is prefereed, the platform should use tunnel mode for
// primary player if it's supported.
void (*SetTunnelModePreferred)(bool preferred);

} StarboardExtensionPlayerConfigurationApi;
Expand Down

0 comments on commit 1f9e541

Please sign in to comment.