| Summary: | Avoid heap allocation under AudioSummingJunction::updateRenderingState() | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||||||
| Component: | Web Audio | Assignee: | Chris Dumez <cdumez> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | cdumez, darin, eric.carlson, ews-watchlist, ggaren, glenn, jer.noble, peng.liu6, philipj, sergio, webkit-bug-importer | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | WebKit Nightly Build | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Bug Depends on: | |||||||||||
| Bug Blocks: | 223226 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Chris Dumez
2021-03-15 18:05:14 PDT
Created attachment 423275 [details]
Patch
Created attachment 423280 [details]
Patch
Comment on attachment 423280 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=423280&action=review > Source/WebCore/Modules/webaudio/AudioSummingJunction.h:87 > + Optional<Vector<AudioNodeOutput*>> m_pendingRenderingOutputs; I don’t see why we have to use Optional here. If we used an empty vector instead, and replaced the checks for null with checks for an empty vector, I think all the code above would still be correct. We could then remove the special case for null/empty from updateRenderingState. Created attachment 423417 [details]
Patch
Committed r274541: <https://commits.webkit.org/r274541> All reviewed patches have been landed. Closing bug and clearing flags on attachment 423417 [details]. |