commit | 5b1ebc04f52bdbcf20f0165fa3d8405e0d15fd55 | [log] [tgz] |
---|---|---|
author | Malay Keshav <malaykeshav@chromium.org> | Sat Jan 12 01:38:23 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Sat Jan 12 01:38:23 2019 |
tree | ab57e7d95835bd162d02899ddc69c2e48ce69f7f | |
parent | 808c0071aaa9ec067d1dcbb69090d40156960a98 [diff] |
Store and set stale frame content screenshot when the frame is evicted This patch captures the web content surface as a texture and displays it on the RenderWidgetHostView until a new compositor frame is submitted by the viz client. This allows the browser to display stale content instead of a white solid color during animations. The decision to show stale content or a solid color is done by the WebContentsDelegate associated with the RenderWidgetHostView and its DelegatedFrameHost. For this patch, the default is to show a solid color on frame eviction. In the case of a tabbed browser, the Browser (which implements the WebContentsDelegate) chooses to show stale content if the frame being evicted is from an active tab. Bug: 897826 Change-Id: I3346f3dec79780d107d2c96b4382886690a69570 Component: RenderWidgetHostViewAura, DelegatedFrameHost, ui layer Reviewed-on: https://chromium-review.googlesource.com/c/1369714 Reviewed-by: Sadrul Chowdhury <sadrul@chromium.org> Reviewed-by: Scott Violet <sky@chromium.org> Reviewed-by: danakj <danakj@chromium.org> Reviewed-by: Saman Sami <samans@chromium.org> Reviewed-by: François Doray <fdoray@chromium.org> Commit-Queue: Malay Keshav <malaykeshav@chromium.org> Cr-Commit-Position: refs/heads/master@{#622255}
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 .