MSE-in-Workers: Drop dependency on HTMLME for recording counters
Upcoming worker-context-hosted MSE code paths will need to be distanced from relying directly upon the main-thread-hosted HTMLMediaElement. This change breaks one such strong dependency in MSE implementation by using the already-known execution context in MediaSource and SourceBuffer directly to record deprecation and usecounters, instead of consulting to use the UseCounter context of the attached media element. Also includes a necessary set of braces to fix a pre-existing style error flagged this time by presubmit. BUG=878133 Change-Id: I74b3ba0e9e11f866ffc1ec08376e045cee31efbd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2382678 Commit-Queue: Matthew Wolenetz <wolenetz@chromium.org> Reviewed-by:Will Cassella <cassew@google.com> Cr-Commit-Position: refs/heads/master@{#803621}
Showing
Please register or sign in to comment