Adopt thread safety analysis annotations in MediaStreamAudioSourceNode and fix bugs found by clang.
Created attachment 430219 [details] Patch
Comment on attachment 430219 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=430219&action=review > Source/WebCore/Modules/webaudio/MediaStreamAudioSourceNode.cpp:109 > + if (sourceSampleRate == sampleRate()) We could keep a single sampleRate call as a minor optimization.
(In reply to youenn fablet from comment #2) > Comment on attachment 430219 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=430219&action=review > > > Source/WebCore/Modules/webaudio/MediaStreamAudioSourceNode.cpp:109 > > + if (sourceSampleRate == sampleRate()) > > We could keep a single sampleRate call as a minor optimization. SampleRate() is an in-line function so it did not seem worth it?
(In reply to Chris Dumez from comment #3) > (In reply to youenn fablet from comment #2) > > Comment on attachment 430219 [details] > > Patch > > > > View in context: > > https://bugs.webkit.org/attachment.cgi?id=430219&action=review > > > > > Source/WebCore/Modules/webaudio/MediaStreamAudioSourceNode.cpp:109 > > > + if (sourceSampleRate == sampleRate()) > > > > We could keep a single sampleRate call as a minor optimization. > > SampleRate() is an in-line function so it did not seem worth it? Isn't it a virtual method?
(In reply to youenn fablet from comment #4) > (In reply to Chris Dumez from comment #3) > > (In reply to youenn fablet from comment #2) > > > Comment on attachment 430219 [details] > > > Patch > > > > > > View in context: > > > https://bugs.webkit.org/attachment.cgi?id=430219&action=review > > > > > > > Source/WebCore/Modules/webaudio/MediaStreamAudioSourceNode.cpp:109 > > > > + if (sourceSampleRate == sampleRate()) > > > > > > We could keep a single sampleRate call as a minor optimization. > > > > SampleRate() is an in-line function so it did not seem worth it? > > Isn't it a virtual method? Oh, it is. and it isn't inline either. I was confused.
Created attachment 430261 [details] Patch
(In reply to Chris Dumez from comment #5) > (In reply to youenn fablet from comment #4) > > (In reply to Chris Dumez from comment #3) > > > (In reply to youenn fablet from comment #2) > > > > Comment on attachment 430219 [details] > > > > Patch > > > > > > > > View in context: > > > > https://bugs.webkit.org/attachment.cgi?id=430219&action=review > > > > > > > > > Source/WebCore/Modules/webaudio/MediaStreamAudioSourceNode.cpp:109 > > > > > + if (sourceSampleRate == sampleRate()) > > > > > > > > We could keep a single sampleRate call as a minor optimization. > > > > > > SampleRate() is an in-line function so it did not seem worth it? > > > > Isn't it a virtual method? > > Oh, it is. and it isn't inline either. I was confused. Fixed before landing, thanks for catching.
Committed r278309 (238346@main): <https://commits.webkit.org/238346@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 430261 [details].
<rdar://problem/78715855>