Fix DCHECK failure in SaveDesktopSnapshot.
This was causing a crash in interactive_ui_tests on Windows each time a test timed out. Based on a comment deep in WebRTC's capture code about a UI message loop, I had previously taken pains to run a loop when capturing the screen. Following some changes to base, this leads to a DCHECK failure when the RunLoop is started. Looking deeper in WebRTC, I don't think that a UI message loop is needed for the use at hand. In particular, the comment was with regards to the use of the magnification API. Use of this API is explicitly disabled by SaveDesktopSnapshot, so the capturer is fully synchronous and doesn't need a message loop at all. BUG=756338 R=sky@chromium.org Change-Id: I92679a213e7bdf8dde03e0ab8e02c36f0fe2804b Reviewed-on: https://chromium-review.googlesource.com/899349Reviewed-by:Scott Violet <sky@chromium.org> Reviewed-by:
Tommi <tommi@chromium.org> Commit-Queue: Greg Thompson <grt@chromium.org> Cr-Commit-Position: refs/heads/master@{#534664}
Showing
Please register or sign in to comment