DescriptionMake OffscreenCanvas histogram thread safe
In OffscreenCanvasFrameDispatcherImpl::dispatchFrame, we have a timer
histogram at the end of this function which uses DEFINE_STATIC_LOCAL. This
is not thread safe in the cases where multiple worker commit at the same
time. This CL makes the timer histogram thread safe.
A layout test has been added to make sure that the test doesn't crash.
BUG=663916
Committed: https://crrev.com/e9ccbda7993554fbdeab8810be5e4ac3ac669f8d
Cr-Commit-Position: refs/heads/master@{#432333}
Patch Set 1 #
Total comments: 2
Patch Set 2 : address comments #
Total comments: 1
Patch Set 3 : nits #
Messages
Total messages: 17 (10 generated)
|