[crd host][linux] Pass CapturerType from desktop to network [chromium/src : main]

0 views
Skip to first unread message

Yuwei Huang (Gerrit)

unread,
Feb 18, 2026, 8:50:28 PM (3 days ago) Feb 18
to Joe Downing, Chromium LUCI CQ, chromium...@chromium.org, chromotin...@chromium.org, ipc-securi...@chromium.org
Attention needed from Joe Downing

Yuwei Huang added 1 comment

Patchset-level comments
File-level comment, Patchset 7 (Latest):
Yuwei Huang . resolved

PTAL thanks!

Open in Gerrit

Related details

Attention is currently required from:
  • Joe Downing
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Iaefc65dce051df86d13f4cac555b4ece9e90e768
Gerrit-Change-Number: 7590867
Gerrit-PatchSet: 7
Gerrit-Owner: Yuwei Huang <yuw...@chromium.org>
Gerrit-Reviewer: Joe Downing <joe...@chromium.org>
Gerrit-Reviewer: Yuwei Huang <yuw...@chromium.org>
Gerrit-Attention: Joe Downing <joe...@chromium.org>
Gerrit-Comment-Date: Thu, 19 Feb 2026 01:50:18 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Yuwei Huang (Gerrit)

unread,
Feb 18, 2026, 9:56:10 PM (3 days ago) Feb 18
to Chromium LUCI CQ, chromium...@chromium.org, chromotin...@chromium.org, ipc-securi...@chromium.org

Yuwei Huang voted Commit-Queue+1

Commit-Queue+1
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Iaefc65dce051df86d13f4cac555b4ece9e90e768
Gerrit-Change-Number: 7590867
Gerrit-PatchSet: 7
Gerrit-Owner: Yuwei Huang <yuw...@chromium.org>
Gerrit-Reviewer: Yuwei Huang <yuw...@chromium.org>
Gerrit-Comment-Date: Thu, 19 Feb 2026 02:56:02 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Joe Downing (Gerrit)

unread,
Feb 19, 2026, 9:59:57 AM (3 days ago) Feb 19
to Yuwei Huang, Chromium LUCI CQ, chromium...@chromium.org, chromotin...@chromium.org, ipc-securi...@chromium.org
Attention needed from Yuwei Huang

Joe Downing added 1 comment

File remoting/host/mojom/desktop_session.mojom
Line 469, Patchset 7 (Latest):enum CapturerType {
// No frames will be supplied unless CaptureFrame() is called. The caller may
// want to call CaptureFrame() at a constant rate.
kPolling,

// Frames will be supplied after Start() is called as long as the desktop
// changes. CaptureFrame() is a no-op.
kEventDriven,
};
Joe Downing . unresolved

I was thinking about this last night before I was removed from the review list so I wanted to add a comment to consider. It's true that the capturer will either poll or be event driven for Linux but it's possible to have a mixed capturer (for instance, WGC supports event driven capture if we decided to use it though we'd likely still need a fallback for GDI for secure desktops.

I'm wondering if it would be more efficient to have the network process set a capture target rate when creating the capturer and then simplify the IPC interface so that the way in which frame capture is implemented is encapsulated in the desktop process and not partially driven in the network process.

WDYT?

Open in Gerrit

Related details

Attention is currently required from:
  • Yuwei Huang
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Iaefc65dce051df86d13f4cac555b4ece9e90e768
    Gerrit-Change-Number: 7590867
    Gerrit-PatchSet: 7
    Gerrit-Owner: Yuwei Huang <yuw...@chromium.org>
    Gerrit-Reviewer: Yuwei Huang <yuw...@chromium.org>
    Gerrit-CC: Joe Downing <joe...@chromium.org>
    Gerrit-Attention: Yuwei Huang <yuw...@chromium.org>
    Gerrit-Comment-Date: Thu, 19 Feb 2026 14:59:48 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Yuwei Huang (Gerrit)

    unread,
    Feb 19, 2026, 2:43:47 PM (2 days ago) Feb 19
    to Joe Downing, Chromium LUCI CQ, chromium...@chromium.org, chromotin...@chromium.org, ipc-securi...@chromium.org
    Attention needed from Joe Downing

    Yuwei Huang added 1 comment

    File remoting/host/mojom/desktop_session.mojom
    Line 469, Patchset 7 (Latest):enum CapturerType {
    // No frames will be supplied unless CaptureFrame() is called. The caller may
    // want to call CaptureFrame() at a constant rate.
    kPolling,

    // Frames will be supplied after Start() is called as long as the desktop
    // changes. CaptureFrame() is a no-op.
    kEventDriven,
    };
    Joe Downing . unresolved

    I was thinking about this last night before I was removed from the review list so I wanted to add a comment to consider. It's true that the capturer will either poll or be event driven for Linux but it's possible to have a mixed capturer (for instance, WGC supports event driven capture if we decided to use it though we'd likely still need a fallback for GDI for secure desktops.

    I'm wondering if it would be more efficient to have the network process set a capture target rate when creating the capturer and then simplify the IPC interface so that the way in which frame capture is implemented is encapsulated in the desktop process and not partially driven in the network process.

    WDYT?

    Yuwei Huang

    I decided to split up this CL after I sent it for review. Should have done this before sending out. Sorry for the churn!

    I'm wondering if it would be more efficient to have the network process set a capture target rate when creating the capturer and then simplify the IPC interface so that the way in which frame capture is implemented is encapsulated in the desktop process and not partially driven in the network process.

    I think this makes sense, and it is similar to what I did in [WebrtcMouseCursorMonitorAdaptor](https://source.chromium.org/chromium/chromium/src/+/main:remoting/host/webrtc_mouse_cursor_monitor_adaptor.cc). The only problem is that I'll need to move the frame scheduler from [WebrtcVideoStream](https://source.chromium.org/chromium/chromium/src/+/main:remoting/protocol/webrtc_video_stream.cc;l=127;drc=ad16e35b63a26d9c840e5ac60bdfec17deb8d011) into `DesktopCapturerWrapper` or individual capturers, but chromotocol does its own thing with frame scheduling ([cs](https://source.chromium.org/chromium/chromium/src/+/main:remoting/protocol/video_frame_pump.cc;l=55;drc=71e98710db31f5ee4c666eccd09fe14ff27514e7)). The chromotocol code is scheduled to be deleted in the next few months, so it's not like I can't break it. I'll need to think about how to do it cleanly, at least without breaking the tests though.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Joe Downing
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Iaefc65dce051df86d13f4cac555b4ece9e90e768
    Gerrit-Change-Number: 7590867
    Gerrit-PatchSet: 7
    Gerrit-Owner: Yuwei Huang <yuw...@chromium.org>
    Gerrit-Reviewer: Yuwei Huang <yuw...@chromium.org>
    Gerrit-CC: Joe Downing <joe...@chromium.org>
    Gerrit-Attention: Joe Downing <joe...@chromium.org>
    Gerrit-Comment-Date: Thu, 19 Feb 2026 19:43:38 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Joe Downing <joe...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages