Move VISUAL_STATE promise to activation
Motivation is for android webview where compositor swaps
is not controlled by chromium code, but activations are.
Add a DidActivate to SwapPromise. This is an additional
call before DidSwap. It is not meant to be the end of a
SwapPromise as either DidSwap or DidNotSwap can still be
called afterwards.
Then modify the message queue to mark VISUAL_STATE messages
as ready to deliver in DidActivate. On chrome, the messages
are still delivered in swap, so there is no additional IPCs.
In webview, they can be delivered in the activation
callback.
BUG=431166
Review URL: https://codereview.chromium.org/
1126963006
Cr-Commit-Position: refs/heads/master@{#330128}