Avoid having to call context.lazyInitialize() in every AudioNode factory function. Replace all these calls with a single one inside the AudioNode constructor.
Created attachment 409728 [details]
Created attachment 409755 [details]
Comment on attachment 409728 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=409728&action=review
> + if (!isOfflineContext())
> + ++s_hardwareContextCount;
Change log doesn’t mention this change.
(In reply to Darin Adler from comment #3)
> Comment on attachment 409728 [details]
> View in context:
> > Source/WebCore/Modules/webaudio/BaseAudioContext.cpp:233
> > + if (!isOfflineContext())
> > + ++s_hardwareContextCount;
> Change log doesn’t mention this change.
Yes, this was a left over change I did not mean to upload. This is why I uploaded another iteration.
Committed r267609: <https://trac.webkit.org/changeset/267609>
All reviewed patches have been landed. Closing bug and clearing flags on attachment 409755 [details].