Disable GL_RASTERIZER_DISCARD when clearing XR targets [chromium/src : main]

0 views
Skip to first unread message

AI Code Reviewer (Gerrit)

unread,
May 28, 2026, 4:44:25 PM (5 days ago) May 28
to Brandon Jones, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, feature-v...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, kinuko...@chromium.org

AI Code Reviewer added 1 comment

File third_party/blink/renderer/platform/graphics/gpu/drawing_buffer.h
Line 321, Patchset 1 (Latest): Platform::WebGLContextType GetWebGLVersion() const { return webgl_version_; }
AI Code Reviewer . unresolved

nit: Blink Style Guide: Precede setters with the word “Set”; use bare words for getters. Consider renaming `GetWebGLVersion()` to `WebGLVersion()` to match the variable name `webgl_version_`, as it does not conflict with the type name.

To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **OK But Won't Fix**: reason | **Later**: b/<bug_id> | **Invalid:** reason


_This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent)._
_AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve._
_[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_

Open in Gerrit

Related details

Attention set is empty
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: I8d84f165096994365c548ea4e6d4ead5b595d658
Gerrit-Change-Number: 7884159
Gerrit-PatchSet: 1
Gerrit-Owner: Brandon Jones <baj...@chromium.org>
Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
Gerrit-CC: Stephen Chenney <sche...@chromium.org>
Gerrit-Comment-Date: Thu, 28 May 2026 20:44:22 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Brandon Jones (Gerrit)

unread,
May 28, 2026, 4:45:13 PM (5 days ago) May 28
to Kenneth Russell, AI Code Reviewer, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, feature-v...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, kinuko...@chromium.org
Attention needed from Kenneth Russell

Brandon Jones voted and added 1 comment

Votes added by Brandon Jones

Commit-Queue+1

1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Brandon Jones . resolved

PTAL!

Open in Gerrit

Related details

Attention is currently required from:
  • Kenneth Russell
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: I8d84f165096994365c548ea4e6d4ead5b595d658
Gerrit-Change-Number: 7884159
Gerrit-PatchSet: 1
Gerrit-Owner: Brandon Jones <baj...@chromium.org>
Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
Gerrit-Reviewer: Kenneth Russell <k...@chromium.org>
Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
Gerrit-CC: Stephen Chenney <sche...@chromium.org>
Gerrit-Attention: Kenneth Russell <k...@chromium.org>
Gerrit-Comment-Date: Thu, 28 May 2026 20:45:01 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Kenneth Russell (Gerrit)

unread,
May 28, 2026, 4:49:37 PM (5 days ago) May 28
to Brandon Jones, Chromium LUCI CQ, AI Code Reviewer, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, feature-v...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, kinuko...@chromium.org
Attention needed from Brandon Jones

Kenneth Russell voted and added 3 comments

Votes added by Kenneth Russell

Code-Review+1

3 comments

Patchset-level comments
Kenneth Russell . resolved

lgtm

Commit Message
Line 15, Patchset 1 (Latest):Fixes: 516781007
Kenneth Russell . unresolved

Should be "Fixed" not "Fixes". You can also remove the "Bug:" line if using "Fixed".

File third_party/blink/renderer/platform/graphics/gpu/drawing_buffer.h
Line 321, Patchset 1 (Latest): Platform::WebGLContextType GetWebGLVersion() const { return webgl_version_; }
Kenneth Russell . unresolved

Might want to add "bool IsWebGL2()" instead of this to make the call site simpler.

Open in Gerrit

Related details

Attention is currently required from:
  • Brandon Jones
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: I8d84f165096994365c548ea4e6d4ead5b595d658
    Gerrit-Change-Number: 7884159
    Gerrit-PatchSet: 1
    Gerrit-Owner: Brandon Jones <baj...@chromium.org>
    Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
    Gerrit-Reviewer: Kenneth Russell <k...@chromium.org>
    Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
    Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
    Gerrit-CC: Stephen Chenney <sche...@chromium.org>
    Gerrit-Attention: Brandon Jones <baj...@chromium.org>
    Gerrit-Comment-Date: Thu, 28 May 2026 20:49:24 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Brandon Jones (Gerrit)

    unread,
    May 28, 2026, 5:02:28 PM (5 days ago) May 28
    to Kenneth Russell, Chromium LUCI CQ, AI Code Reviewer, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, feature-v...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, kinuko...@chromium.org
    Attention needed from Kenneth Russell

    Brandon Jones voted and added 4 comments

    Votes added by Brandon Jones

    Auto-Submit+1

    4 comments

    Patchset-level comments
    File-level comment, Patchset 2 (Latest):
    Brandon Jones . resolved

    Update cleared the +1, sorry!

    Commit Message
    Line 15, Patchset 1:Fixes: 516781007
    Kenneth Russell . resolved

    Should be "Fixed" not "Fixes". You can also remove the "Bug:" line if using "Fixed".

    Brandon Jones

    I've found that either "Fixed" or "Fixes" works, actually. Didn't know that allowed the Bug line to be omitted, though.

    Fixed. ;)

    File third_party/blink/renderer/platform/graphics/gpu/drawing_buffer.h
    Line 321, Patchset 1: Platform::WebGLContextType GetWebGLVersion() const { return webgl_version_; }
    AI Code Reviewer . resolved

    nit: Blink Style Guide: Precede setters with the word “Set”; use bare words for getters. Consider renaming `GetWebGLVersion()` to `WebGLVersion()` to match the variable name `webgl_version_`, as it does not conflict with the type name.

    To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
    **Done** | **OK But Won't Fix**: reason | **Later**: b/<bug_id> | **Invalid:** reason


    _This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent)._
    _AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve._
    _[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_

    Brandon Jones

    Acknowledged

    Line 321, Patchset 1: Platform::WebGLContextType GetWebGLVersion() const { return webgl_version_; }
    Kenneth Russell . resolved

    Might want to add "bool IsWebGL2()" instead of this to make the call site simpler.

    Brandon Jones

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Kenneth Russell
    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: I8d84f165096994365c548ea4e6d4ead5b595d658
      Gerrit-Change-Number: 7884159
      Gerrit-PatchSet: 2
      Gerrit-Owner: Brandon Jones <baj...@chromium.org>
      Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
      Gerrit-Reviewer: Kenneth Russell <k...@chromium.org>
      Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
      Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
      Gerrit-CC: Stephen Chenney <sche...@chromium.org>
      Gerrit-Attention: Kenneth Russell <k...@chromium.org>
      Gerrit-Comment-Date: Thu, 28 May 2026 21:02:14 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Kenneth Russell <k...@chromium.org>
      Comment-In-Reply-To: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Kenneth Russell (Gerrit)

      unread,
      May 28, 2026, 5:06:48 PM (5 days ago) May 28
      to Brandon Jones, Chromium LUCI CQ, AI Code Reviewer, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, feature-v...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, kinuko...@chromium.org
      Attention needed from Brandon Jones

      Kenneth Russell voted and added 2 comments

      Votes added by Kenneth Russell

      Code-Review+1

      2 comments

      Patchset-level comments
      Kenneth Russell . resolved

      lgtm with one issue still.

      Commit Message
      Line 15, Patchset 2 (Latest):Fixes: 516781007
      Kenneth Russell . unresolved

      Still not Fixed. Have to edit the bug description here in Gerrit, not locally and then re-uploading.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Brandon Jones
      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: I8d84f165096994365c548ea4e6d4ead5b595d658
        Gerrit-Change-Number: 7884159
        Gerrit-PatchSet: 2
        Gerrit-Owner: Brandon Jones <baj...@chromium.org>
        Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
        Gerrit-Reviewer: Kenneth Russell <k...@chromium.org>
        Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
        Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
        Gerrit-CC: Stephen Chenney <sche...@chromium.org>
        Gerrit-Attention: Brandon Jones <baj...@chromium.org>
        Gerrit-Comment-Date: Thu, 28 May 2026 21:06:30 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Brandon Jones (Gerrit)

        unread,
        May 28, 2026, 5:08:18 PM (5 days ago) May 28
        to Kenneth Russell, Chromium LUCI CQ, AI Code Reviewer, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, feature-v...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, kinuko...@chromium.org

        Brandon Jones voted and added 1 comment

        Votes added by Brandon Jones

        Auto-Submit+1
        Commit-Queue+2

        1 comment

        Commit Message
        Line 15, Patchset 2:Fixes: 516781007
        Kenneth Russell . resolved

        Still not Fixed. Have to edit the bug description here in Gerrit, not locally and then re-uploading.

        Brandon Jones

        Bleh. Done for real this time.

        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: I8d84f165096994365c548ea4e6d4ead5b595d658
          Gerrit-Change-Number: 7884159
          Gerrit-PatchSet: 3
          Gerrit-Owner: Brandon Jones <baj...@chromium.org>
          Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
          Gerrit-Reviewer: Kenneth Russell <k...@chromium.org>
          Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
          Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
          Gerrit-CC: Stephen Chenney <sche...@chromium.org>
          Gerrit-Comment-Date: Thu, 28 May 2026 21:08:06 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: Yes
          Comment-In-Reply-To: Kenneth Russell <k...@chromium.org>
          satisfied_requirement
          open
          diffy

          Brandon Jones (Gerrit)

          unread,
          May 28, 2026, 5:09:36 PM (5 days ago) May 28
          to Kenneth Russell, Chromium LUCI CQ, AI Code Reviewer, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, feature-v...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, kinuko...@chromium.org

          Brandon Jones added 1 comment

          Commit Message
          Line 15, Patchset 2:Fixes: 516781007
          Kenneth Russell . resolved

          Still not Fixed. Have to edit the bug description here in Gerrit, not locally and then re-uploading.

          Brandon Jones

          Bleh. Done for real this time.

          Brandon Jones

          Oh, and apparently my assertion that "Fixes" and "Fixed" are interchangable comes from Dawn, which

          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: I8d84f165096994365c548ea4e6d4ead5b595d658
          Gerrit-Change-Number: 7884159
          Gerrit-PatchSet: 3
          Gerrit-Owner: Brandon Jones <baj...@chromium.org>
          Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
          Gerrit-Reviewer: Kenneth Russell <k...@chromium.org>
          Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
          Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
          Gerrit-CC: Stephen Chenney <sche...@chromium.org>
          Gerrit-Comment-Date: Thu, 28 May 2026 21:09:21 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          Comment-In-Reply-To: Kenneth Russell <k...@chromium.org>
          Comment-In-Reply-To: Brandon Jones <baj...@chromium.org>
          satisfied_requirement
          open
          diffy

          Chromium LUCI CQ (Gerrit)

          unread,
          May 28, 2026, 8:04:13 PM (5 days ago) May 28
          to Brandon Jones, Kenneth Russell, AI Code Reviewer, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, feature-v...@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:
          Disable GL_RASTERIZER_DISCARD when clearing XR targets

          Prevents a scenario where uninitialized content may be exposed by
          a page that sets GL_RASTERIZER_DISCARD prior to getting new WebXR
          textures.
          Bug: 516781007
          Change-Id: I8d84f165096994365c548ea4e6d4ead5b595d658
          Fixed: 516781007
          Auto-Submit: Brandon Jones <baj...@chromium.org>
          Commit-Queue: Brandon Jones <baj...@chromium.org>
          Reviewed-by: Kenneth Russell <k...@chromium.org>
          Cr-Commit-Position: refs/heads/main@{#1638070}
          Files:
          • M third_party/blink/renderer/modules/webgl/webgl2_rendering_context_base.cc
          • M third_party/blink/renderer/modules/webgl/webgl2_rendering_context_base.h
          • M third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc
          • M third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.h
          • M third_party/blink/renderer/modules/xr/xr_webgl_swap_chain.cc
          • M third_party/blink/renderer/platform/graphics/gpu/drawing_buffer.h
          • M third_party/blink/renderer/platform/graphics/gpu/drawing_buffer_test_helpers.h
          • M third_party/blink/renderer/platform/graphics/gpu/xr_webgl_drawing_buffer.cc
          Change size: S
          Delta: 8 files changed, 31 insertions(+), 0 deletions(-)
          Branch: refs/heads/main
          Submit Requirements:
          • requirement satisfiedCode-Review: +1 by Kenneth Russell
          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: I8d84f165096994365c548ea4e6d4ead5b595d658
          Gerrit-Change-Number: 7884159
          Gerrit-PatchSet: 4
          Gerrit-Owner: Brandon Jones <baj...@chromium.org>
          Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
          Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
          Gerrit-Reviewer: Kenneth Russell <k...@chromium.org>
          Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
          open
          diffy
          satisfied_requirement
          Reply all
          Reply to author
          Forward
          0 new messages