Delegated Ink Trails Tracing Improvements [chromium/src : main]

0 views
Skip to first unread message

Olga Gerchikov (Gerrit)

unread,
Apr 9, 2026, 3:49:37 PMApr 9
to Gaston Rodriguez, Chromium LUCI CQ, chromium...@chromium.org, alexmo...@chromium.org, creis...@chromium.org, navigation...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
Attention needed from Gaston Rodriguez

Olga Gerchikov voted and added 1 comment

Votes added by Olga Gerchikov

Commit-Queue+1

1 comment

Patchset-level comments
File-level comment, Patchset 2 (Latest):
Olga Gerchikov . resolved

Hi Gaston, can you please review the changes?

Open in Gerrit

Related details

Attention is currently required from:
  • Gaston Rodriguez
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: I2628e574988864b92b5b9b210bb89afc8ab6ed64
Gerrit-Change-Number: 7744895
Gerrit-PatchSet: 2
Gerrit-Owner: Olga Gerchikov <gerc...@microsoft.com>
Gerrit-Reviewer: Gaston Rodriguez <gas...@microsoft.com>
Gerrit-Reviewer: Olga Gerchikov <gerc...@microsoft.com>
Gerrit-Attention: Gaston Rodriguez <gas...@microsoft.com>
Gerrit-Comment-Date: Thu, 09 Apr 2026 19:49:26 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Gaston Rodriguez (Gerrit)

unread,
Apr 14, 2026, 3:46:49 PM (12 days ago) Apr 14
to Olga Gerchikov, chromiu...@luci-project-accounts.iam.gserviceaccount.com, chromium...@chromium.org, alexmo...@chromium.org, creis...@chromium.org, navigation...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
Attention needed from Olga Gerchikov

Gaston Rodriguez added 3 comments

File content/browser/renderer_host/render_widget_host_impl.cc
Line 2640, Patchset 2 (Latest): aura::Window* root_window =
view_->GetNativeView()->GetRootWindow();
if (root_window) {
Gaston Rodriguez . unresolved
```suggestion
if (aura::Window* root_window =
view_->GetNativeView()->GetRootWindow()) {
```
I think you may be able to at least declare the pointer as `const`.
Line 2649, Patchset 2 (Latest): }
#endif
ctx.AddDebugAnnotation("screen point", screen_point.ToString());
});
Gaston Rodriguez . unresolved
```suggestion
}
ctx.AddDebugAnnotation("screen point", screen_point.ToString());
#endif
});
```
I think you should only add "screen point" on Windows unless there's a reason to provide the same "interface" or data for all platforms, in which case this is fine.

In other platforms, "screen point" is redundant with "delegated point".
I suspect it's not true that `delegated_ink_point.point()` is the screen point in other platforms.

File ui/gl/delegated_ink_point_renderer_gpu.cc
Line 135, Patchset 2 (Latest): TRACE_EVENT("delegated_ink_trails",
Gaston Rodriguez . unresolved

I'm not sure I understand what information this trace would provide.
For each point, how long it takes to set their painted timestamp if they aren't already in the `token_map`?

Open in Gerrit

Related details

Attention is currently required from:
  • Olga Gerchikov
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: I2628e574988864b92b5b9b210bb89afc8ab6ed64
    Gerrit-Change-Number: 7744895
    Gerrit-PatchSet: 2
    Gerrit-Owner: Olga Gerchikov <gerc...@microsoft.com>
    Gerrit-Reviewer: Gaston Rodriguez <gas...@microsoft.com>
    Gerrit-Reviewer: Olga Gerchikov <gerc...@microsoft.com>
    Gerrit-Attention: Olga Gerchikov <gerc...@microsoft.com>
    Gerrit-Comment-Date: Tue, 14 Apr 2026 19:46:38 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Olga Gerchikov (Gerrit)

    unread,
    Apr 21, 2026, 11:26:08 PM (5 days ago) Apr 21
    to Gaston Rodriguez, Chromium LUCI CQ, chromium...@chromium.org, alexmo...@chromium.org, creis...@chromium.org, navigation...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
    Attention needed from Gaston Rodriguez

    Olga Gerchikov added 3 comments

    File content/browser/renderer_host/render_widget_host_impl.cc
    Line 2640, Patchset 2: aura::Window* root_window =

    view_->GetNativeView()->GetRootWindow();
    if (root_window) {
    Gaston Rodriguez . resolved
    ```suggestion
    if (aura::Window* root_window =
    view_->GetNativeView()->GetRootWindow()) {
    ```
    I think you may be able to at least declare the pointer as `const`.
    Olga Gerchikov
    It can't be const:
    ../../content/browser/renderer_host/render_widget_host_impl.cc(2643,29): error: 'this' argument to member function 'GetAcceleratedWidget' has type 'const WindowTreeHost', but function is not marked const
    2643 | const HWND hwnd = root_window->GetHost()->GetAcceleratedWidget();

    #endif
    ctx.AddDebugAnnotation("screen point", screen_point.ToString());
    });
    Gaston Rodriguez . resolved
    ```suggestion
    }
    ctx.AddDebugAnnotation("screen point", screen_point.ToString());
    #endif
    });
    ```
    I think you should only add "screen point" on Windows unless there's a reason to provide the same "interface" or data for all platforms, in which case this is fine.

    In other platforms, "screen point" is redundant with "delegated point".
    I suspect it's not true that `delegated_ink_point.point()` is the screen point in other platforms.

    Olga Gerchikov

    Done

    File ui/gl/delegated_ink_point_renderer_gpu.cc
    Line 135, Patchset 2: TRACE_EVENT("delegated_ink_trails",
    Gaston Rodriguez . resolved

    I'm not sure I understand what information this trace would provide.
    For each point, how long it takes to set their painted timestamp if they aren't already in the `token_map`?

    Olga Gerchikov

    This is called right after commit and indicates when the point is guaranteed to be drawen.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Gaston Rodriguez
    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: I2628e574988864b92b5b9b210bb89afc8ab6ed64
      Gerrit-Change-Number: 7744895
      Gerrit-PatchSet: 3
      Gerrit-Owner: Olga Gerchikov <gerc...@microsoft.com>
      Gerrit-Reviewer: Gaston Rodriguez <gas...@microsoft.com>
      Gerrit-Reviewer: Olga Gerchikov <gerc...@microsoft.com>
      Gerrit-Attention: Gaston Rodriguez <gas...@microsoft.com>
      Gerrit-Comment-Date: Wed, 22 Apr 2026 03:26:01 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Gaston Rodriguez <gas...@microsoft.com>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Gaston Rodriguez (Gerrit)

      unread,
      Apr 22, 2026, 11:06:44 AM (4 days ago) Apr 22
      to Olga Gerchikov, Chromium LUCI CQ, chromium...@chromium.org, alexmo...@chromium.org, creis...@chromium.org, navigation...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
      Attention needed from Olga Gerchikov

      Gaston Rodriguez added 1 comment

      File ui/gl/delegated_ink_point_renderer_gpu.cc
      Line 135, Patchset 2: TRACE_EVENT("delegated_ink_trails",
      Gaston Rodriguez . resolved

      I'm not sure I understand what information this trace would provide.
      For each point, how long it takes to set their painted timestamp if they aren't already in the `token_map`?

      Olga Gerchikov

      This is called right after commit and indicates when the point is guaranteed to be drawen.

      Gaston Rodriguez

      I see, it's not about the duration but reporting which point was painted and having the flow in the ui to track a single point.
      I was going to suggest extracting the trace event from the `for`, but I think that this is the better solution.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Olga Gerchikov
      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: I2628e574988864b92b5b9b210bb89afc8ab6ed64
      Gerrit-Change-Number: 7744895
      Gerrit-PatchSet: 3
      Gerrit-Owner: Olga Gerchikov <gerc...@microsoft.com>
      Gerrit-Reviewer: Gaston Rodriguez <gas...@microsoft.com>
      Gerrit-Reviewer: Olga Gerchikov <gerc...@microsoft.com>
      Gerrit-Attention: Olga Gerchikov <gerc...@microsoft.com>
      Gerrit-Comment-Date: Wed, 22 Apr 2026 15:06:36 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Gaston Rodriguez <gas...@microsoft.com>
      Comment-In-Reply-To: Olga Gerchikov <gerc...@microsoft.com>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Gaston Rodriguez (Gerrit)

      unread,
      Apr 22, 2026, 11:06:56 AM (4 days ago) Apr 22
      to Olga Gerchikov, Chromium LUCI CQ, chromium...@chromium.org, alexmo...@chromium.org, creis...@chromium.org, navigation...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
      Attention needed from Olga Gerchikov

      Gaston Rodriguez voted Code-Review+1

      Code-Review+1
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Olga Gerchikov
      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: I2628e574988864b92b5b9b210bb89afc8ab6ed64
        Gerrit-Change-Number: 7744895
        Gerrit-PatchSet: 3
        Gerrit-Owner: Olga Gerchikov <gerc...@microsoft.com>
        Gerrit-Reviewer: Gaston Rodriguez <gas...@microsoft.com>
        Gerrit-Reviewer: Olga Gerchikov <gerc...@microsoft.com>
        Gerrit-Attention: Olga Gerchikov <gerc...@microsoft.com>
        Gerrit-Comment-Date: Wed, 22 Apr 2026 15:06:46 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Olga Gerchikov (Gerrit)

        unread,
        Apr 22, 2026, 12:17:20 PM (4 days ago) Apr 22
        to Avi Drissman, Mikhail Khokhlov, Gaston Rodriguez, Chromium LUCI CQ, chromium...@chromium.org, alexmo...@chromium.org, creis...@chromium.org, navigation...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
        Attention needed from Avi Drissman and Mikhail Khokhlov

        Olga Gerchikov added 1 comment

        Patchset-level comments
        File-level comment, Patchset 3 (Latest):
        Olga Gerchikov . resolved

        Hi, can you please review the change? Thanks!

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Avi Drissman
        • Mikhail Khokhlov
        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: I2628e574988864b92b5b9b210bb89afc8ab6ed64
        Gerrit-Change-Number: 7744895
        Gerrit-PatchSet: 3
        Gerrit-Owner: Olga Gerchikov <gerc...@microsoft.com>
        Gerrit-Reviewer: Avi Drissman <a...@chromium.org>
        Gerrit-Reviewer: Gaston Rodriguez <gas...@microsoft.com>
        Gerrit-Reviewer: Mikhail Khokhlov <khok...@google.com>
        Gerrit-Reviewer: Olga Gerchikov <gerc...@microsoft.com>
        Gerrit-Attention: Mikhail Khokhlov <khok...@google.com>
        Gerrit-Attention: Avi Drissman <a...@chromium.org>
        Gerrit-Comment-Date: Wed, 22 Apr 2026 16:17:13 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Mikhail Khokhlov (Gerrit)

        unread,
        Apr 22, 2026, 12:28:39 PM (4 days ago) Apr 22
        to Olga Gerchikov, Avi Drissman, Gaston Rodriguez, Chromium LUCI CQ, chromium...@chromium.org, alexmo...@chromium.org, creis...@chromium.org, navigation...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
        Attention needed from Avi Drissman and Olga Gerchikov

        Mikhail Khokhlov voted Code-Review+1

        Code-Review+1
        Open in Gerrit

        Related details

        Attention is currently required from:
        • Avi Drissman
        • Olga Gerchikov
        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: I2628e574988864b92b5b9b210bb89afc8ab6ed64
        Gerrit-Change-Number: 7744895
        Gerrit-PatchSet: 3
        Gerrit-Owner: Olga Gerchikov <gerc...@microsoft.com>
        Gerrit-Reviewer: Avi Drissman <a...@chromium.org>
        Gerrit-Reviewer: Gaston Rodriguez <gas...@microsoft.com>
        Gerrit-Reviewer: Mikhail Khokhlov <khok...@google.com>
        Gerrit-Reviewer: Olga Gerchikov <gerc...@microsoft.com>
        Gerrit-Attention: Olga Gerchikov <gerc...@microsoft.com>
        Gerrit-Attention: Avi Drissman <a...@chromium.org>
        Gerrit-Comment-Date: Wed, 22 Apr 2026 16:28:24 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Avi Drissman (Gerrit)

        unread,
        Apr 22, 2026, 12:31:20 PM (4 days ago) Apr 22
        to Olga Gerchikov, Avi Drissman, Mikhail Khokhlov, Gaston Rodriguez, Chromium LUCI CQ, chromium...@chromium.org, alexmo...@chromium.org, creis...@chromium.org, navigation...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
        Attention needed from Olga Gerchikov

        Avi Drissman voted and added 1 comment

        Votes added by Avi Drissman

        Code-Review+1

        1 comment

        Patchset-level comments
        Avi Drissman . resolved

        Good luck!

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Olga Gerchikov
        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: I2628e574988864b92b5b9b210bb89afc8ab6ed64
        Gerrit-Change-Number: 7744895
        Gerrit-PatchSet: 3
        Gerrit-Owner: Olga Gerchikov <gerc...@microsoft.com>
        Gerrit-Reviewer: Avi Drissman <a...@chromium.org>
        Gerrit-Reviewer: Gaston Rodriguez <gas...@microsoft.com>
        Gerrit-Reviewer: Mikhail Khokhlov <khok...@google.com>
        Gerrit-Reviewer: Olga Gerchikov <gerc...@microsoft.com>
        Gerrit-Attention: Olga Gerchikov <gerc...@microsoft.com>
        Gerrit-Comment-Date: Wed, 22 Apr 2026 16:31:07 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy

        Olga Gerchikov (Gerrit)

        unread,
        Apr 22, 2026, 1:03:26 PM (4 days ago) Apr 22
        to Avi Drissman, Mikhail Khokhlov, Gaston Rodriguez, Chromium LUCI CQ, chromium...@chromium.org, alexmo...@chromium.org, creis...@chromium.org, navigation...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org

        Olga Gerchikov voted Commit-Queue+2

        Commit-Queue+2
        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: I2628e574988864b92b5b9b210bb89afc8ab6ed64
        Gerrit-Change-Number: 7744895
        Gerrit-PatchSet: 3
        Gerrit-Owner: Olga Gerchikov <gerc...@microsoft.com>
        Gerrit-Reviewer: Avi Drissman <a...@chromium.org>
        Gerrit-Reviewer: Gaston Rodriguez <gas...@microsoft.com>
        Gerrit-Reviewer: Mikhail Khokhlov <khok...@google.com>
        Gerrit-Reviewer: Olga Gerchikov <gerc...@microsoft.com>
        Gerrit-Comment-Date: Wed, 22 Apr 2026 17:03:17 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy

        Chromium LUCI CQ (Gerrit)

        unread,
        Apr 22, 2026, 1:17:32 PM (4 days ago) Apr 22
        to Olga Gerchikov, Avi Drissman, Mikhail Khokhlov, Gaston Rodriguez, chromium...@chromium.org, alexmo...@chromium.org, creis...@chromium.org, navigation...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org

        Chromium LUCI CQ submitted the change

        Change information

        Commit message:
        Delegated Ink Trails Tracing Improvements

        This change enables end‑to‑end collection of delegated ink traces on the
        Windows platform.

        Updates include:

        - Added the delegated_ink_trails category to ETW events.
        - Emitted delegated ink points in screen coordinates from RenderWidgetHostImpl::ForwardDelegatedInkPoint.
        - Added tracing immediately after frame commit.
        Change-Id: I2628e574988864b92b5b9b210bb89afc8ab6ed64
        Reviewed-by: Gaston Rodriguez <gas...@microsoft.com>
        Reviewed-by: Avi Drissman <a...@chromium.org>
        Commit-Queue: Olga Gerchikov <gerc...@microsoft.com>
        Reviewed-by: Mikhail Khokhlov <khok...@google.com>
        Cr-Commit-Position: refs/heads/main@{#1618947}
        Files:
        • M base/trace_event/etw_interceptor_win.cc
        • M content/browser/renderer_host/render_widget_host_impl.cc
        • M ui/gl/delegated_ink_point_renderer_gpu.cc
        Change size: S
        Delta: 3 files changed, 35 insertions(+), 5 deletions(-)
        Branch: refs/heads/main
        Submit Requirements:
        • requirement satisfiedCode-Review: +1 by Gaston Rodriguez, +1 by Mikhail Khokhlov, +1 by Avi Drissman
        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: I2628e574988864b92b5b9b210bb89afc8ab6ed64
        Gerrit-Change-Number: 7744895
        Gerrit-PatchSet: 4
        Gerrit-Owner: Olga Gerchikov <gerc...@microsoft.com>
        Gerrit-Reviewer: Avi Drissman <a...@chromium.org>
        Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
        Gerrit-Reviewer: Gaston Rodriguez <gas...@microsoft.com>
        Gerrit-Reviewer: Mikhail Khokhlov <khok...@google.com>
        Gerrit-Reviewer: Olga Gerchikov <gerc...@microsoft.com>
        open
        diffy
        satisfied_requirement
        Reply all
        Reply to author
        Forward
        0 new messages