Fold GpuServiceImpl log management into new class. Add locking.
Prior to 1b6beceb we would stop deferring logs before any threads had been started. The new mechanism defers quite a bit longer and as such may encounter thread safety issues. The fix is to add a lock when we're deferring logs and move the take over process into a helper class so we can ensure continuity pre and post take over. The fix only uses the lock when we're in deferred mode, after the takeover we no longer need it. R=danakj Fixed: 1066469 Change-Id: Ie272d6581329c51bb624b08750ad7ccf60e3e17c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2130628 Commit-Queue: Dale Curtis <dalecurtis@chromium.org> Auto-Submit: Dale Curtis <dalecurtis@chromium.org> Reviewed-by:danakj <danakj@chromium.org> Cr-Commit-Position: refs/heads/master@{#755154}
Showing
Please register or sign in to comment