Fix flaky CopyOutRequest tests
SkiaCopyOutputScalingPixelTest.ScaledCopyOfDrawnFrame has been flaky since https://crrev.com/c/2256225 landed. This change made it so that CopyOutputResults were serialized on worker threads, which breaks the ordering the test expects. Switch to using the test main thread to run the result callbacks to remove data race on |dummy_ran|. Bug: 1100421 Change-Id: Id19df859ed6af48cce85c16689122fa33e171184 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2274257 Commit-Queue: kylechar <kylechar@chromium.org> Reviewed-by:weiliangc <weiliangc@chromium.org> Cr-Commit-Position: refs/heads/master@{#783960}
Showing
Please register or sign in to comment