commit | 35c203ac1851f3967d2fe9ba6e44bbbaa397e7d5 | [log] [tgz] |
---|---|---|
author | danakj <[email protected]> | Tue Apr 16 17:12:39 2019 |
committer | Commit Bot <[email protected]> | Tue Apr 16 17:12:39 2019 |
tree | 0804498b00340cdde2d7ff63dea4af4144750b26 | |
parent | 3ddc529ed4fa3a98bdfec33dc3cc9b9231cf276f [diff] |
Move SetAllowGpuRasterization from WebLayerTreeView to WebWidgetClient (11/n) Rename the method to SetAllowGpuRasterization() to be much more explicit about what the method does. Move the logic for deciding if gpu raster is disallowed up to WebViewImpl, instead of splitting it between WebViewImpl and ViewportDescription, since it is already derivable from the ViewportDescription public API. And rewrite it with and if statement to make it easier to follow. Drops the branch on if (layer_tree_view_) for handling the commented case 2 of doing layout after closing the WebWidget because I believe that should be resolved by dcheng's solution here: https://crrev.com/c/1416450/9..13/third_party/blink/renderer/core/frame/frame_test_helpers.cc The WebLayerTreeView is a shortcut past the WebWidgetClient that is not needed now that we always composite. This works toward eliminating this extra API layer. More importantly this helps us Close/Restart the WebWidget parts of WebViewImpl by not requiring plumbing 2 pointers with slightly different lifetimes (WebLayerTreeView is created inside the Init of the WebWidgetClient). This will help avoid a bunch of complexity in creating WebFrameWidgets and other WebWidgets. [email protected] Bug: 912193 Change-Id: I9278d80192a593f829915d3c1fc208b6a99a6d50 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1555354 Commit-Queue: danakj <[email protected]> Reviewed-by: Daniel Cheng <[email protected]> Cr-Commit-Position: refs/heads/master@{#651328}
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 .