Spanify ReverbConvolverStage::Process [chromium/src : main]

0 views
Skip to first unread message

kelsen liu (Gerrit)

unread,
Mar 6, 2026, 10:45:10 AMMar 6
to Chromium LUCI CQ, chromium...@chromium.org, Hongchan Choi, blink-...@chromium.org, kinuko...@chromium.org
Attention needed from Michael Wilson

kelsen liu added 1 comment

Patchset-level comments
File-level comment, Patchset 3 (Latest):
kelsen liu . resolved

PTAL, Thanks.

Open in Gerrit

Related details

Attention is currently required from:
  • Michael Wilson
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: Ib3515c97f172d364b072856c35b9a2237c55aa9f
Gerrit-Change-Number: 7637952
Gerrit-PatchSet: 3
Gerrit-Owner: kelsen liu <kels...@chromium.org>
Gerrit-Reviewer: Michael Wilson <mjwi...@chromium.org>
Gerrit-Reviewer: kelsen liu <kels...@chromium.org>
Gerrit-CC: Hongchan Choi <hong...@chromium.org>
Gerrit-Attention: Michael Wilson <mjwi...@chromium.org>
Gerrit-Comment-Date: Fri, 06 Mar 2026 15:44:56 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Michael Wilson (Gerrit)

unread,
Mar 6, 2026, 2:54:32 PMMar 6
to kelsen liu, Chromium LUCI CQ, chromium...@chromium.org, Hongchan Choi, blink-...@chromium.org, kinuko...@chromium.org
Attention needed from kelsen liu

Michael Wilson voted and added 6 comments

Votes added by Michael Wilson

Code-Review+1

6 comments

Patchset-level comments
Michael Wilson . unresolved

LGTM overall with minor comments / requests. I have been working on a change that overlaps with this here: https://crrev.com/c/7640131 -- let's land your change first since I think it is more complete. If you are continuing to work in this area we should coordinate so as not to duplicate effort. Thank you!

File third_party/blink/renderer/platform/audio/reverb_convolver_stage.cc
Line 127, Patchset 3 (Latest): ReverbInputBuffer* input_buffer = convolver->InputBuffer();
Michael Wilson . unresolved

We can inline this (see other comment)

Line 128, Patchset 3 (Latest): Process(input_buffer->DirectReadFrom(&input_read_index_, frames_to_process));
Michael Wilson . unresolved
I think we don't need a temporary here:
```suggestion
Process(convolver->InputBuffer()->DirectReadFrom(&input_read_index_, frames_to_process));
```
Line 153, Patchset 3 (Latest): bool is_temporary_buffer_safe =
frames_to_process <= temporary_buffer_.size();
DCHECK(is_temporary_buffer_safe);
if (!is_temporary_buffer_safe) {
return;
}
Michael Wilson . unresolved

I think this is now checked by `first()` so we can remove this block.

Line 167, Patchset 3 (Latest):
bool is_temporary_buffer_safe =
frames_to_process <= pre_delay_buffer_.size();
DCHECK(is_temporary_buffer_safe);
if (!is_temporary_buffer_safe) {
return;
}
Michael Wilson . unresolved

I think this is now checked by `first()` so we can remove this block.

Line 188, Patchset 3 (Latest): if (!direct_mode_) {
fft_convolver_->Process(fft_kernel_.get(), pre_delayed_source.data(),
temporary_buffer.data(), frames_to_process);
} else {
direct_convolver_->Process(pre_delayed_source.data(),
temporary_buffer.data(), frames_to_process);
}
Michael Wilson . unresolved
Nit: we can swap these conditions to marginally improve readability.
```suggestion
if (direct_mode_) {
direct_convolver_->Process(pre_delayed_source.data(),
temporary_buffer.data(), frames_to_process);
} else {
fft_convolver_->Process(fft_kernel_.get(), pre_delayed_source.data(),
temporary_buffer.data(), frames_to_process);
}
```
Open in Gerrit

Related details

Attention is currently required from:
  • kelsen liu
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement 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: Ib3515c97f172d364b072856c35b9a2237c55aa9f
Gerrit-Change-Number: 7637952
Gerrit-PatchSet: 3
Gerrit-Owner: kelsen liu <kels...@chromium.org>
Gerrit-Reviewer: Michael Wilson <mjwi...@chromium.org>
Gerrit-Reviewer: kelsen liu <kels...@chromium.org>
Gerrit-CC: Hongchan Choi <hong...@chromium.org>
Gerrit-Attention: kelsen liu <kels...@chromium.org>
Gerrit-Comment-Date: Fri, 06 Mar 2026 19:54:22 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

kelsen liu (Gerrit)

unread,
Mar 7, 2026, 1:26:25 AMMar 7
to Chromium LUCI CQ, chromium...@chromium.org, Hongchan Choi, blink-...@chromium.org, kinuko...@chromium.org
Attention needed from Michael Wilson

kelsen liu added 1 comment

Patchset-level comments
Michael Wilson . unresolved

LGTM overall with minor comments / requests. I have been working on a change that overlaps with this here: https://crrev.com/c/7640131 -- let's land your change first since I think it is more complete. If you are continuing to work in this area we should coordinate so as not to duplicate effort. Thank you!

kelsen liu

Thanks! Checked your CL and yours is definitely the better fix. I'll abandon this so yours can land.

I'm still around to help out in this area. Is there a specific chunk of logic or a follow-up you'd like to hand off to me?

Open in Gerrit

Related details

Attention is currently required from:
  • Michael Wilson
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement 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: Ib3515c97f172d364b072856c35b9a2237c55aa9f
Gerrit-Change-Number: 7637952
Gerrit-PatchSet: 3
Gerrit-Owner: kelsen liu <kels...@chromium.org>
Gerrit-Reviewer: Michael Wilson <mjwi...@chromium.org>
Gerrit-Reviewer: kelsen liu <kels...@chromium.org>
Gerrit-CC: Hongchan Choi <hong...@chromium.org>
Gerrit-Attention: Michael Wilson <mjwi...@chromium.org>
Gerrit-Comment-Date: Sat, 07 Mar 2026 06:26:14 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Michael Wilson <mjwi...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

kelsen liu (Gerrit)

unread,
Mar 7, 2026, 1:26:46 AMMar 7
to Chromium LUCI CQ, chromium...@chromium.org, Hongchan Choi, blink-...@chromium.org, kinuko...@chromium.org

kelsen liu abandoned this change.

View Change

Abandoned abandon

kelsen liu abandoned this change

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement 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: abandon
satisfied_requirement
unsatisfied_requirement
open
diffy

Michael Wilson (Gerrit)

unread,
Mar 7, 2026, 1:45:34 AMMar 7
to kelsen liu, Chromium LUCI CQ, chromium...@chromium.org, Hongchan Choi, blink-...@chromium.org, kinuko...@chromium.org
Attention needed from kelsen liu

Michael Wilson added 1 comment

Patchset-level comments
Michael Wilson . unresolved

LGTM overall with minor comments / requests. I have been working on a change that overlaps with this here: https://crrev.com/c/7640131 -- let's land your change first since I think it is more complete. If you are continuing to work in this area we should coordinate so as not to duplicate effort. Thank you!

kelsen liu

Thanks! Checked your CL and yours is definitely the better fix. I'll abandon this so yours can land.

I'm still around to help out in this area. Is there a specific chunk of logic or a follow-up you'd like to hand off to me?

Michael Wilson

I think there are some things you did better in this CL, and it is also more targeted, so I would prefer to land this one and rebase my CL on top of it once it lands. Sorry if I implied that we should abandon this change! I think your changes so far have been very good.

I am focusing on UNSAFE_TODO, and the bug you are working on is about general spanfication, so there are some areas that don't overlap but a large amount does.

If you have some bandwidth, it would be helpful if you could look at:

  • third_party/blink/renderer/platform/audio/fft_convolver.cc
  • third_party/blink/renderer/platform/audio/biquad.cc

But, if there was something you were already interested in looking at please go ahead. It's not a huge problem if we overlap a bit. I will also CC you on my other changes in the area.

Thank you again for your work here! I still think we should land this CL. If you strongly disagree please let me know and I will roll your improvements into the other CL.

Open in Gerrit

Related details

Attention is currently required from:
  • kelsen liu
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement 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: Ib3515c97f172d364b072856c35b9a2237c55aa9f
Gerrit-Change-Number: 7637952
Gerrit-PatchSet: 3
Gerrit-Owner: kelsen liu <kels...@chromium.org>
Gerrit-Reviewer: Michael Wilson <mjwi...@chromium.org>
Gerrit-Reviewer: kelsen liu <kels...@chromium.org>
Gerrit-CC: Hongchan Choi <hong...@chromium.org>
Gerrit-Attention: kelsen liu <kels...@chromium.org>
Gerrit-Comment-Date: Sat, 07 Mar 2026 06:45:25 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Michael Wilson <mjwi...@chromium.org>
Comment-In-Reply-To: kelsen liu <kels...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

kelsen liu (Gerrit)

unread,
Mar 7, 2026, 2:03:08 AMMar 7
to Chromium LUCI CQ, chromium...@chromium.org, Hongchan Choi, blink-...@chromium.org, kinuko...@chromium.org

kelsen liu added 1 comment

Patchset-level comments
Michael Wilson . resolved

LGTM overall with minor comments / requests. I have been working on a change that overlaps with this here: https://crrev.com/c/7640131 -- let's land your change first since I think it is more complete. If you are continuing to work in this area we should coordinate so as not to duplicate effort. Thank you!

kelsen liu

Thanks! Checked your CL and yours is definitely the better fix. I'll abandon this so yours can land.

I'm still around to help out in this area. Is there a specific chunk of logic or a follow-up you'd like to hand off to me?

Michael Wilson

I think there are some things you did better in this CL, and it is also more targeted, so I would prefer to land this one and rebase my CL on top of it once it lands. Sorry if I implied that we should abandon this change! I think your changes so far have been very good.

I am focusing on UNSAFE_TODO, and the bug you are working on is about general spanfication, so there are some areas that don't overlap but a large amount does.

If you have some bandwidth, it would be helpful if you could look at:

  • third_party/blink/renderer/platform/audio/fft_convolver.cc
  • third_party/blink/renderer/platform/audio/biquad.cc

But, if there was something you were already interested in looking at please go ahead. It's not a huge problem if we overlap a bit. I will also CC you on my other changes in the area.

Thank you again for your work here! I still think we should land this CL. If you strongly disagree please let me know and I will roll your improvements into the other CL.

kelsen liu

Thanks! It's really no problem—please go ahead and roll this into your CL.

I'll grab fft_convolver.cc and biquad.cc when I have some free time later.

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement 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: Ib3515c97f172d364b072856c35b9a2237c55aa9f
Gerrit-Change-Number: 7637952
Gerrit-PatchSet: 3
Gerrit-Owner: kelsen liu <kels...@chromium.org>
Gerrit-Reviewer: Michael Wilson <mjwi...@chromium.org>
Gerrit-Reviewer: kelsen liu <kels...@chromium.org>
Gerrit-CC: Hongchan Choi <hong...@chromium.org>
Gerrit-Comment-Date: Sat, 07 Mar 2026 07:02:58 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages