Add SharedImageExportResult to ReturnedResource [chromium/src : main]

0 views
Skip to first unread message

Vasiliy Telezhnikov (Gerrit)

unread,
Dec 12, 2025, 1:03:59 PM (4 days ago) Dec 12
to Mingjing Zhang, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, cc-...@chromium.org, crostin...@chromium.org, drott+bl...@chromium.org, feature-v...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, penghu...@chromium.org, yhanada+...@chromium.org
Attention needed from Mingjing Zhang

Vasiliy Telezhnikov voted and added 4 comments

Votes added by Vasiliy Telezhnikov

Code-Review+1

4 comments

Patchset-level comments
File-level comment, Patchset 3 (Latest):
Vasiliy Telezhnikov . resolved

lgtm % nits, thanks.

File components/viz/common/resources/returned_resource.h
Line 39, Patchset 3 (Latest): // A |sync_token| is an identifier for a point in the parent compositor's
Vasiliy Telezhnikov . unresolved

nit: Please, update the comment

File gpu/command_buffer/client/client_shared_image.h
Line 127, Patchset 3 (Latest): friend class viz::SurfaceResourceHolder;
Vasiliy Telezhnikov . unresolved

nit: Do we need this one as we use EndImport now?

File third_party/blink/renderer/platform/graphics/canvas_resource_dispatcher.cc
Line 56, Patchset 3 (Latest): auto sync_token = (resource_)
Vasiliy Telezhnikov . unresolved

nit: I think we should always have resource here. We CHECK that it exists in ctor, we never reset it except the move that happens in `ReleaseResource`. And we either call it from here or dtor.

It's also [CHECKed in the callback](https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/platform/graphics/canvas_resource.cc;drc=6fe04ac5cd13eaa7013d9da4b94144b4caa1fabf;l=115)

Open in Gerrit

Related details

Attention is currently required from:
  • Mingjing Zhang
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not 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: I299fb531600a707ad067ebc650ad00b52e28ad72
Gerrit-Change-Number: 7248918
Gerrit-PatchSet: 3
Gerrit-Owner: Mingjing Zhang <mjz...@chromium.org>
Gerrit-Reviewer: Mingjing Zhang <mjz...@chromium.org>
Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
Gerrit-CC: Stephen Chenney <sche...@chromium.org>
Gerrit-Attention: Mingjing Zhang <mjz...@chromium.org>
Gerrit-Comment-Date: Fri, 12 Dec 2025 18:03:53 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Mingjing Zhang (Gerrit)

unread,
Dec 15, 2025, 11:52:52 AM (yesterday) Dec 15
to Vasiliy Telezhnikov, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, cc-...@chromium.org, crostin...@chromium.org, drott+bl...@chromium.org, feature-v...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, penghu...@chromium.org, yhanada+...@chromium.org

Mingjing Zhang added 3 comments

File components/viz/common/resources/returned_resource.h
Line 39, Patchset 3: // A |sync_token| is an identifier for a point in the parent compositor's
Vasiliy Telezhnikov . resolved

nit: Please, update the comment

Mingjing Zhang

Done

File gpu/command_buffer/client/client_shared_image.h
Line 127, Patchset 3: friend class viz::SurfaceResourceHolder;
Vasiliy Telezhnikov . resolved

nit: Do we need this one as we use EndImport now?

Mingjing Zhang

Removed. We no longer need this friend declaration.

File third_party/blink/renderer/platform/graphics/canvas_resource_dispatcher.cc
Line 56, Patchset 3: auto sync_token = (resource_)
Vasiliy Telezhnikov . resolved

nit: I think we should always have resource here. We CHECK that it exists in ctor, we never reset it except the move that happens in `ReleaseResource`. And we either call it from here or dtor.

It's also [CHECKed in the callback](https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/platform/graphics/canvas_resource.cc;drc=6fe04ac5cd13eaa7013d9da4b94144b4caa1fabf;l=115)

Mingjing Zhang

Done

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • 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: I299fb531600a707ad067ebc650ad00b52e28ad72
    Gerrit-Change-Number: 7248918
    Gerrit-PatchSet: 4
    Gerrit-Owner: Mingjing Zhang <mjz...@chromium.org>
    Gerrit-Reviewer: Mingjing Zhang <mjz...@chromium.org>
    Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
    Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
    Gerrit-CC: Stephen Chenney <sche...@chromium.org>
    Gerrit-Comment-Date: Mon, 15 Dec 2025 16:52:46 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Vasiliy Telezhnikov <vas...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Mingjing Zhang (Gerrit)

    unread,
    Dec 15, 2025, 12:11:30 PM (yesterday) Dec 15
    to Colin Blundell, Vasiliy Telezhnikov, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, cc-...@chromium.org, crostin...@chromium.org, drott+bl...@chromium.org, feature-v...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, penghu...@chromium.org, yhanada+...@chromium.org
    Attention needed from Colin Blundell

    Mingjing Zhang added 1 comment

    Patchset-level comments
    File-level comment, Patchset 4 (Latest):
    Mingjing Zhang . resolved

    +blundell@ Please review `ash/frame_sink/*` and `device/vr/android/arcore/ar_compositor_frame_sink.cc`. Thanks.

    Context: This CL introduces the struct SharedImageExportResult which wraps one single SyncToken that was previously directly exposed to the clients. This is a transitional step towards hiding SyncTokens in ClientSharedImage. SharedImageExportResult is supposed to be eventually opaque to clients (but not fully so in the current CL since clients still need the SyncToken). ClientSharedImage::EndExport for now serves as a converter that consumes a SharedImageExportResult and yields a SyncToken.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Colin Blundell
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • 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: I299fb531600a707ad067ebc650ad00b52e28ad72
    Gerrit-Change-Number: 7248918
    Gerrit-PatchSet: 4
    Gerrit-Owner: Mingjing Zhang <mjz...@chromium.org>
    Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
    Gerrit-Reviewer: Mingjing Zhang <mjz...@chromium.org>
    Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
    Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
    Gerrit-CC: Stephen Chenney <sche...@chromium.org>
    Gerrit-Attention: Colin Blundell <blun...@chromium.org>
    Gerrit-Comment-Date: Mon, 15 Dec 2025 17:11:23 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Colin Blundell (Gerrit)

    unread,
    Dec 15, 2025, 1:07:18 PM (yesterday) Dec 15
    to Mingjing Zhang, Colin Blundell, Vasiliy Telezhnikov, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, cc-...@chromium.org, crostin...@chromium.org, drott+bl...@chromium.org, feature-v...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, penghu...@chromium.org, yhanada+...@chromium.org
    Attention needed from Mingjing Zhang

    Colin Blundell voted and added 1 comment

    Votes added by Colin Blundell

    Code-Review+1

    1 comment

    Patchset-level comments
    Colin Blundell . resolved

    Thanks!

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Mingjing Zhang
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • 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: I299fb531600a707ad067ebc650ad00b52e28ad72
    Gerrit-Change-Number: 7248918
    Gerrit-PatchSet: 4
    Gerrit-Owner: Mingjing Zhang <mjz...@chromium.org>
    Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
    Gerrit-Reviewer: Mingjing Zhang <mjz...@chromium.org>
    Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
    Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
    Gerrit-CC: Stephen Chenney <sche...@chromium.org>
    Gerrit-Attention: Mingjing Zhang <mjz...@chromium.org>
    Gerrit-Comment-Date: Mon, 15 Dec 2025 18:07:04 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Mingjing Zhang (Gerrit)

    unread,
    Dec 15, 2025, 3:15:33 PM (23 hours ago) Dec 15
    to Chromium IPC Reviews, Colin Blundell, Vasiliy Telezhnikov, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, cc-...@chromium.org, crostin...@chromium.org, drott+bl...@chromium.org, feature-v...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, penghu...@chromium.org, yhanada+...@chromium.org
    Attention needed from Chromium IPC Reviews

    Mingjing Zhang added 1 comment

    Patchset-level comments
    File-level comment, Patchset 5 (Latest):
    Mingjing Zhang . resolved

    +chrome-ipc-reviews@ Please review all `.mojom` and `*mojom_traits.h` files. Thanks.

    Context: The new SharedImageExportResult serves as a wrapper for SyncToken used in ReturnedResource. For now clients still need to get the SyncToken from SharedImageExportResult, but our eventual goal is to make this wrapper fully opaque to clients, and handle SyncToken automatically without needing the clients' active participation.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Chromium IPC Reviews
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • 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: I299fb531600a707ad067ebc650ad00b52e28ad72
    Gerrit-Change-Number: 7248918
    Gerrit-PatchSet: 5
    Gerrit-Owner: Mingjing Zhang <mjz...@chromium.org>
    Gerrit-Reviewer: Chromium IPC Reviews <chrome-ip...@google.com>
    Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
    Gerrit-Reviewer: Mingjing Zhang <mjz...@chromium.org>
    Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
    Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
    Gerrit-CC: Stephen Chenney <sche...@chromium.org>
    Gerrit-Attention: Chromium IPC Reviews <chrome-ip...@google.com>
    Gerrit-Comment-Date: Mon, 15 Dec 2025 20:15:28 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    gwsq (Gerrit)

    unread,
    Dec 15, 2025, 3:19:11 PM (23 hours ago) Dec 15
    to Mingjing Zhang, Chromium IPC Reviews, Colin Blundell, Vasiliy Telezhnikov, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, cc-...@chromium.org, crostin...@chromium.org, drott+bl...@chromium.org, feature-v...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, penghu...@chromium.org, yhanada+...@chromium.org
    Attention needed from Joe Mason

    Message from gwsq

    From googleclient/chrome/chromium_gwsq/ipc/config.gwsq:
    IPC: joenot...@google.com

    📎 It looks like you’re making a possibly security-sensitive change! 📎 IPC security review isn’t a rubberstamp, so your friendly security reviewer will need a fair amount of context to review your CL effectively. Please review your CL description and code comments to make sure they provide context for someone unfamiliar with your project/area. Pay special attention to where data comes from and which processes it flows between (and their privilege levels). Feel free to point your security reviewer at design docs, bugs, or other links if you can’t reasonably make a self-contained CL description. (Also see https://cbea.ms/git-commit/).

    IPC reviewer(s): joenot...@google.com


    Reviewer source(s):
    joenot...@google.com is from context(googleclient/chrome/chromium_gwsq/ipc/config.gwsq)

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Joe Mason
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • 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: I299fb531600a707ad067ebc650ad00b52e28ad72
    Gerrit-Change-Number: 7248918
    Gerrit-PatchSet: 5
    Gerrit-Owner: Mingjing Zhang <mjz...@chromium.org>
    Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
    Gerrit-Reviewer: Joe Mason <joenot...@google.com>
    Gerrit-Reviewer: Mingjing Zhang <mjz...@chromium.org>
    Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
    Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
    Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
    Gerrit-CC: Stephen Chenney <sche...@chromium.org>
    Gerrit-CC: gwsq
    Gerrit-Attention: Joe Mason <joenot...@google.com>
    Gerrit-Comment-Date: Mon, 15 Dec 2025 20:19:01 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages