Include pixel type in layout messages triggered by `OnVideoSizeChanged`. [chromium/src : main]

0 views
Skip to first unread message

Jamie Walch (Gerrit)

unread,
Apr 1, 2026, 4:13:10 PM (2 days ago) Apr 1
to Yuwei Huang, AyeAye, chromotin...@chromium.org
Attention needed from Yuwei Huang

Jamie Walch added 1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Jamie Walch . unresolved

This fixes the bug, and it seems like it was an omission not to copy the pixel type into the protobuf so I think it's safe, but I don't really understand this code. Why do we have a separate internal representation of the video layout? It opens us to more bugs of this sort in the future.

Also, there are other call-sites that construct a `VideoLayout` proto and don't set the pixel type (for example, `ClientVideoDispatcher::OnIncomingMessage`). Do they also need to be updated?

Open in Gerrit

Related details

Attention is currently required from:
  • Yuwei Huang
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement 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: I173f18f7053129314db167f6eeddeb8a8dd23c32
Gerrit-Change-Number: 7722623
Gerrit-PatchSet: 1
Gerrit-Owner: Jamie Walch <jamie...@chromium.org>
Gerrit-Reviewer: Yuwei Huang <yuw...@chromium.org>
Gerrit-Attention: Yuwei Huang <yuw...@chromium.org>
Gerrit-Comment-Date: Wed, 01 Apr 2026 20:13:01 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Yuwei Huang (Gerrit)

unread,
Apr 1, 2026, 4:53:59 PM (2 days ago) Apr 1
to Jamie Walch, AyeAye, chromotin...@chromium.org
Attention needed from Jamie Walch

Yuwei Huang added 1 comment

Patchset-level comments
Jamie Walch . unresolved

This fixes the bug, and it seems like it was an omission not to copy the pixel type into the protobuf so I think it's safe, but I don't really understand this code. Why do we have a separate internal representation of the video layout? It opens us to more bugs of this sort in the future.

Also, there are other call-sites that construct a `VideoLayout` proto and don't set the pixel type (for example, `ClientVideoDispatcher::OnIncomingMessage`). Do they also need to be updated?

Yuwei Huang

Why do we have a separate internal representation of the video layout?

Maybe it was due to dependency or something. You have to ask Gary for the reason :)

`DesktopDisplayInfo` has a [GetVideoLayoutProto()](https://source.chromium.org/chromium/chromium/src/+/main:remoting/host/desktop_display_info.h;l=102;drc=cd4d28a2c2add65c76bb3252dc28370982577e33) method for the opposite conversion. Maybe it's a good idea to add a static `FromVideoLayoutProto` to make it more obvious that it needs to be changed whenever fields are added or removed.

Also, there are other call-sites that construct a VideoLayout proto and don't set the pixel type (for example, ClientVideoDispatcher::OnIncomingMessage). Do they also need to be updated?

Sounds like it should be updated, though looking at the age of that file, I suspect it is only used by chromotocol.

Open in Gerrit

Related details

Attention is currently required from:
  • Jamie Walch
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement 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: I173f18f7053129314db167f6eeddeb8a8dd23c32
Gerrit-Change-Number: 7722623
Gerrit-PatchSet: 1
Gerrit-Owner: Jamie Walch <jamie...@chromium.org>
Gerrit-Reviewer: Yuwei Huang <yuw...@chromium.org>
Gerrit-Attention: Jamie Walch <jamie...@chromium.org>
Gerrit-Comment-Date: Wed, 01 Apr 2026 20:53:49 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Jamie Walch <jamie...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Lambros Lambrou (Gerrit)

unread,
Apr 1, 2026, 5:42:29 PM (2 days ago) Apr 1
to Jamie Walch, Yuwei Huang, AyeAye, chromotin...@chromium.org
Attention needed from Jamie Walch

Lambros Lambrou voted and added 1 comment

Votes added by Lambros Lambrou

Code-Review+1

1 comment

Commit Message
Line 7, Patchset 1 (Latest):Include pixel type in layout messages triggered by `OnVideoSizeChanged`.
Lambros Lambrou . unresolved

You updated `OnDesktopDisplayChanged` as well. I think that's the important one - the `OnVideoSizeChanged` handler is only used in single-stream mode IIRC.

Open in Gerrit

Related details

Attention is currently required from:
  • Jamie Walch
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement 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: I173f18f7053129314db167f6eeddeb8a8dd23c32
    Gerrit-Change-Number: 7722623
    Gerrit-PatchSet: 1
    Gerrit-Owner: Jamie Walch <jamie...@chromium.org>
    Gerrit-Reviewer: Lambros Lambrou <lambros...@chromium.org>
    Gerrit-Reviewer: Yuwei Huang <yuw...@chromium.org>
    Gerrit-Attention: Jamie Walch <jamie...@chromium.org>
    Gerrit-Comment-Date: Wed, 01 Apr 2026 21:42:18 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages