commit | 76c92640a648c363b6b39b008a4cf4b791b311e9 | [log] [tgz] |
---|---|---|
author | Bo Liu <[email protected]> | Wed Mar 13 01:18:31 2019 |
committer | Commit Bot <[email protected]> | Wed Mar 13 01:18:31 2019 |
tree | 755b18fa0a2755856f7635d286967713e2b1f597 | |
parent | fde466435627a44e7f155a0d64082ffb8abca326 [diff] |
aw: Implement GrabViewSnapshotAsync for webview Add a callback on ViewAndroid and set it for RWHVA's instance. If we ever need to readback WebContent's instance, we could set the callback there as well on RWHVA swap. This CL is intended to get GPU tests working so it's not needed yet. The rest of the code path is fairly straightforward. Note though since webview do not actually control the render thread, it's not always guaranteed that a readback will be fulfilled. However this is probably better than failing immediately though. One tricky function is WaitAndPruneFrameQueue which had to be updated in order to avoid dropping copy requests. Bug: 938956 Change-Id: I504db3200d13be062593dd82da8189193a3f6cc6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1513732 Commit-Queue: Bo <[email protected]> Reviewed-by: Ted Choc <[email protected]> Reviewed-by: Eric Karl <[email protected]> Cr-Commit-Position: refs/heads/master@{#640171}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .