Move placeholder_client out of the CanvasResourceDispatcher [chromium/src : main]

0 views
Skip to first unread message

Vasiliy Telezhnikov (Gerrit)

unread,
Jun 12, 2026, 10:47:12 AMJun 12
to Colin Blundell, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, kinuko...@chromium.org
Attention needed from Colin Blundell

Vasiliy Telezhnikov added 1 comment

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

Please, take a look.

Open in Gerrit

Related details

Attention is currently required from:
  • Colin Blundell
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement 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: I0cc255e34753ec4d7e7fb90d6392a953f5348d84
Gerrit-Change-Number: 7926401
Gerrit-PatchSet: 2
Gerrit-Owner: Vasiliy Telezhnikov <vas...@chromium.org>
Gerrit-Reviewer: Colin Blundell <blun...@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: Fri, 12 Jun 2026 14:47:04 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Colin Blundell (Gerrit)

unread,
Jun 12, 2026, 12:17:52 PMJun 12
to Vasiliy Telezhnikov, Colin Blundell, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, kinuko...@chromium.org
Attention needed from Vasiliy Telezhnikov

Colin Blundell voted and added 2 comments

Votes added by Colin Blundell

Code-Review+1

2 comments

Patchset-level comments
Colin Blundell . resolved

Thanks!

File third_party/blink/renderer/core/offscreencanvas/offscreen_canvas.cc
Line 580, Patchset 2 (Latest): std::move(dispatcher_task_runner),
Colin Blundell . unresolved

musing for potential followup: is it a bit odd for the placeholder to have these ties to the dispatcher now (here and just below)?

Open in Gerrit

Related details

Attention is currently required from:
  • Vasiliy Telezhnikov
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: I0cc255e34753ec4d7e7fb90d6392a953f5348d84
    Gerrit-Change-Number: 7926401
    Gerrit-PatchSet: 2
    Gerrit-Owner: Vasiliy Telezhnikov <vas...@chromium.org>
    Gerrit-Reviewer: Colin Blundell <blun...@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: Vasiliy Telezhnikov <vas...@chromium.org>
    Gerrit-Comment-Date: Fri, 12 Jun 2026 16:17:31 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Vasiliy Telezhnikov (Gerrit)

    unread,
    Jun 12, 2026, 12:31:43 PMJun 12
    to Colin Blundell, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, kinuko...@chromium.org

    Vasiliy Telezhnikov voted and added 2 comments

    Votes added by Vasiliy Telezhnikov

    Commit-Queue+2

    2 comments

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

    Thanks for the review.

    File third_party/blink/renderer/core/offscreencanvas/offscreen_canvas.cc
    Line 580, Patchset 2: std::move(dispatcher_task_runner),
    Colin Blundell . resolved

    musing for potential followup: is it a bit odd for the placeholder to have these ties to the dispatcher now (here and just below)?

    Vasiliy Telezhnikov

    So there are two separate things:

    • Task runner, which is just "this thread task runner". I plan to move creation of the placeholder client to GetContext (it's where we become thread bound and canvas can't be moved across threads anymore), then we'd just use `GetTaskRunner(TaskType::kInternalDefault);`

    I see two options to clarify this:

    Orthogonal to this we should move [this](https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/platform/graphics/canvas_resource_dispatcher.cc;drc=1adcb18ff079091fcb79278f0941ac5bc9227752;l=260) out of CRD.

    I'll take a look once this settles down.

    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement 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: I0cc255e34753ec4d7e7fb90d6392a953f5348d84
      Gerrit-Change-Number: 7926401
      Gerrit-PatchSet: 3
      Gerrit-Owner: Vasiliy Telezhnikov <vas...@chromium.org>
      Gerrit-Reviewer: Colin Blundell <blun...@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: Fri, 12 Jun 2026 16:31:32 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Colin Blundell <blun...@chromium.org>
      satisfied_requirement
      open
      diffy

      Chromium LUCI CQ (Gerrit)

      unread,
      Jun 12, 2026, 12:46:57 PMJun 12
      to Vasiliy Telezhnikov, Colin Blundell, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, kinuko...@chromium.org

      Chromium LUCI CQ submitted the change

      Unreviewed changes

      2 is the latest approved patch-set.
      No files were changed between the latest approved patch-set and the submitted one.

      Change information

      Commit message:
      Move placeholder_client out of the CanvasResourceDispatcher

      It's really part of the OffscreenCanvas itself, so move it there. No
      functional changes, the life time matches CRD.

      In a follow-up we should just create it once when we become thread
      bound.
      Change-Id: I0cc255e34753ec4d7e7fb90d6392a953f5348d84
      Reviewed-by: Colin Blundell <blun...@chromium.org>
      Commit-Queue: Vasiliy Telezhnikov <vas...@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#1646039}
      Files:
      • M third_party/blink/renderer/core/offscreencanvas/offscreen_canvas.cc
      • M third_party/blink/renderer/core/offscreencanvas/offscreen_canvas.h
      • M third_party/blink/renderer/platform/graphics/canvas_resource_dispatcher.cc
      • M third_party/blink/renderer/platform/graphics/canvas_resource_dispatcher.h
      Change size: M
      Delta: 4 files changed, 35 insertions(+), 33 deletions(-)
      Branch: refs/heads/main
      Submit Requirements:
      • requirement satisfiedCode-Review: +1 by Colin Blundell
      Open in Gerrit
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: merged
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I0cc255e34753ec4d7e7fb90d6392a953f5348d84
      Gerrit-Change-Number: 7926401
      Gerrit-PatchSet: 4
      Gerrit-Owner: Vasiliy Telezhnikov <vas...@chromium.org>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
      Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
      open
      diffy
      satisfied_requirement

      Colin Blundell (Gerrit)

      unread,
      Jun 15, 2026, 5:19:56 AMJun 15
      to Chromium LUCI CQ, Vasiliy Telezhnikov, Colin Blundell, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, kinuko...@chromium.org

      Colin Blundell added 2 comments

      Colin Blundell . resolved

      Thanks!

      File third_party/blink/renderer/core/offscreencanvas/offscreen_canvas.cc
      Line 580, Patchset 2: std::move(dispatcher_task_runner),
      Colin Blundell . resolved

      musing for potential followup: is it a bit odd for the placeholder to have these ties to the dispatcher now (here and just below)?

      Vasiliy Telezhnikov

      So there are two separate things:

      • Task runner, which is just "this thread task runner". I plan to move creation of the placeholder client to GetContext (it's where we become thread bound and canvas can't be moved across threads anymore), then we'd just use `GetTaskRunner(TaskType::kInternalDefault);`

      I see two options to clarify this:

      Orthogonal to this we should move [this](https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/platform/graphics/canvas_resource_dispatcher.cc;drc=1adcb18ff079091fcb79278f0941ac5bc9227752;l=260) out of CRD.

      I'll take a look once this settles down.

      Colin Blundell

      SGTM, thanks!

      Open in Gerrit

      Related details

      Attention set is empty
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement 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: I0cc255e34753ec4d7e7fb90d6392a953f5348d84
      Gerrit-Change-Number: 7926401
      Gerrit-PatchSet: 4
      Gerrit-Owner: Vasiliy Telezhnikov <vas...@chromium.org>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Reviewer: Colin Blundell <blun...@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 Jun 2026 09:19:36 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Colin Blundell <blun...@chromium.org>
      Comment-In-Reply-To: Vasiliy Telezhnikov <vas...@chromium.org>
      satisfied_requirement
      open
      diffy
      Reply all
      Reply to author
      Forward
      0 new messages