Repository navigation
media: Mark decode-to-texture frames protected - #13116
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request enforces read-only access for StarboardGLTextureBacking across all builds and introduces tracking for CDM attachment in StarboardRendererWrapper to mark decode-to-texture frames from encrypted playback as protected. The feedback highlights an issue where has_cdm_ is set to true unconditionally when a CDM context is provided, even if the attachment fails. It is recommended to wrap the callback to ensure has_cdm_ is only set to true upon successful attachment.
Contributor
🤖 Gemini Suggested Commit Message💡 Pro Tips for a Better Commit Message:
|
Contributor
|
jasonzhangxx
approved these changes
Oct 6, 2026
Member
Author
|
Tested with YTS |
briantting
pushed a commit
that referenced
this pull request
Oct 14, 2026
…protected Refer to original PR: #13116 Mark video frames as protected when produced during encrypted playback with an attached Content Decryption Module (CDM). This aligns the Starboard media pipeline with upstream Chromium decoders. Since these frames are GPU-readable, they are marked as software protected rather than hardware protected. Additionally, enforce read-only access for Starboard GL texture backings in all builds. Because these textures are managed and written by Starboard, rejecting non-read access at the command buffer level prevents potential state corruption. Issue: 545796257 (cherry picked from commit 78f2a38)
briantting
pushed a commit
that referenced
this pull request
Oct 14, 2026
…s protected (#13357) Automated cherry-pick roll to staging. Original pull requests: - #13116 CONFLICTED files: ``` media/mojo/services/starboard/starboard_renderer_wrapper.cc ```⚠️ This PR has conflicts that must be resolved manually (don't forget to update the `.github/AUTOROLL` file). Use the following commands to checkout the branch locally and resolve the conflicts in a separate commit: ```bash gh pr checkout <pull_request_number> -R youtube/cobalt # Resolve conflicts and update .github/AUTOROLL then git add <resolved_files> # Copy CONFLICTED commit's message and metadata # Replace CONFLICTED in title with RESOLVED git commit -c <conflicted_sha> git push origin autoroll-main-to-staging ``` --------- Co-authored-by: Bo-Rong Chen <borongchen@google.com>
briantting
pushed a commit
that referenced
this pull request
Oct 16, 2026
Refer to original PR: #13116 Mark video frames as protected when produced during encrypted playback with an attached Content Decryption Module (CDM). This aligns the Starboard media pipeline with upstream Chromium decoders. Since these frames are GPU-readable, they are marked as software protected rather than hardware protected. Additionally, enforce read-only access for Starboard GL texture backings in all builds. Because these textures are managed and written by Starboard, rejecting non-read access at the command buffer level prevents potential state corruption. Issue: 545796257 (cherry picked from commit 78f2a38)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mark video frames as protected when produced during encrypted playback
with an attached Content Decryption Module (CDM). This aligns the
Starboard media pipeline with upstream Chromium decoders. Since these
frames are GPU-readable, they are marked as software protected rather
than hardware protected.
Additionally, enforce read-only access for Starboard GL texture
backings in all builds. Because these textures are managed and written
by Starboard, rejecting non-read access at the command buffer level
prevents potential state corruption.
Issue: 545796257