Skip to content

feat: support ExternalBeginFrame#1

Open
xy00099 wants to merge 2 commits intomainfrom
ExternalBeginFrame
Open

feat: support ExternalBeginFrame#1
xy00099 wants to merge 2 commits intomainfrom
ExternalBeginFrame

Conversation

@xy00099
Copy link
Collaborator

@xy00099 xy00099 commented Mar 8, 2026

support ExternalBeginFrame in OSR

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1042131a56

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

if (windowlessRenderingEnabled) {
window_info.SetAsWindowless(0);
window_info.shared_texture_enabled = (setting && setting->hardwareAcceleration_);
window_info.external_begin_frame_enabled = true;

Choose a reason for hiding this comment

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

P1 Badge Keep external begin frame opt-in for OSR browsers

Setting window_info.external_begin_frame_enabled = true for every windowless browser changes OSR into externally driven frame scheduling, which requires callers to invoke SendExternalBeginFrame() each frame. This commit only exposes a new API but does not wire any internal scheduling path, so existing consumers that relied on normal SetWindowlessFrameRate-driven repainting can stop receiving paint updates after this change unless they add new per-frame calls.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants