Closures for swap promises must be cross-thread.
Upon landing of <http://crrev.com/c/765749>, which tightened up the threading check of WTF::Function, a few assertion failures were reported. The stack traces indicated closures for swap promises (in PaintTiming.cpp and FirstMeaningfulPaintDetector.cpp) might end up getting destructed on the compositor thread. To allow this, WTF::CrossThreadBind() must be used instead of WTF::Bind(). Bug: 786194 Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Change-Id: I9252eff15ca00e1bc0dfc8f87629ccb9acb56714 Reviewed-on: https://chromium-review.googlesource.com/776343Reviewed-by:Taiju Tsuiki <tzik@chromium.org> Reviewed-by:
Kentaro Hara <haraken@chromium.org> Reviewed-by:
enne <enne@chromium.org> Commit-Queue: enne <enne@chromium.org> Cr-Commit-Position: refs/heads/master@{#517471}
Showing
Please register or sign in to comment