Skip to content

media: Mark decode-to-texture frames protected - #13116

Merged
borongc merged 1 commit into
youtube:mainfrom
borongc:dtt_protected_video
Oct 12, 2026
Merged

borongc merged 1 commit into
youtube:mainfrom
borongc:dtt_protected_video

Conversation

@borongc

@borongc borongc commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

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

@borongc
borongc requested a review from a team as a code owner October 5, 2026 21:16

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

🤖 Gemini Suggested Commit Message


media: Mark decode-to-texture frames protected

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.

Bug: 545796257

💡 Pro Tips for a Better Commit Message:

  1. Influence the Result: Want to change the output? You can write custom prompts or instructions directly in the Pull Request description. The model uses that text to generate the message.
  2. Re-run the Generator: Post a comment with: /generate-commit-message
@github-actions

github-actions Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor
Context State Description
CI / All Pass ✅ PASS All checks passed
CI / android ✅ PASS Passed
CI / evergreen ✅ PASS Passed
CI / linux ✅ PASS Passed
CI / tvos ✅ PASS Passed
@borongc

borongc commented Oct 12, 2026

Copy link
Copy Markdown
Member Author

Tested with YTS Functional Tests Media Dual Drm Video Test, and it is passed with l3 DRM contents.

@borongc
borongc merged commit 78f2a38 into youtube:main Oct 12, 2026
687 of 693 checks passed
@borongc
borongc deleted the dtt_protected_video branch October 12, 2026 22:02
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants