Skip to content

Commit

Permalink
Refine player configuration extension comment (#3056)
Browse files Browse the repository at this point in the history
b/311035005

(cherry picked from commit eb43364)
  • Loading branch information
jasonzhangxx authored and anonymous1-me committed Apr 24, 2024
1 parent 0fab5f4 commit 7dc0543
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 7dc0543

Please sign in to comment.