Revert "[Paint Preview] Change PaintPreviewClient callback thread"
This reverts commit bc36a7c5. Reason for revert: crbug/1058886 Seems to be causing some instability. Reverting for now... Original change's description: > [Paint Preview] Change PaintPreviewClient callback thread > > The callbacks passed to PaintPreviewClient were getting run on an > arbitrary thread via PostTask. This is a problem as they should be run > on the calling thread such that WeakPtrs bound to them are valid. > > Fix > - Make the callbacks run on the same thread that called capture. > - Explicitly run CapturePaintPreviewInternal on the UI thread. > > Follow-up > - Make a dedicated SequencedTaskRunner for executing captures. > > Bug: 1058079 > Change-Id: I1dfa969de613112b4bd1650051e394094dffda5e > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2083567 > Commit-Queue: Calder Kitagawa <ckitagawa@chromium.org> > Reviewed-by: Mehran Mahmoudi <mahmoudi@chromium.org> > Cr-Commit-Position: refs/heads/master@{#746517} TBR=mahmoudi@chromium.org,ckitagawa@chromium.org # Not skipping CQ checks because original CL landed > 1 day ago. Bug: 1058079,1058886 Change-Id: I714946368a528d6b2def20813bcf5b073aa2d2d7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2090292Reviewed-by:Calder Kitagawa <ckitagawa@chromium.org> Commit-Queue: Calder Kitagawa <ckitagawa@chromium.org> Cr-Commit-Position: refs/heads/master@{#747389}
Showing
Please register or sign in to comment