commit | eff882d25c0984870596b70e94ea77fe0a9bb24f | [log] [tgz] |
---|---|---|
author | Colin Blundell <blundell@chromium.org> | Tue Jan 07 08:22:12 2025 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jan 07 08:22:12 2025 |
tree | 0c1fb5dd6f418792825f5914e3b11ebdcafec3e1 | |
parent | 62bf5e6ee8a95a7411007bb98a96d786df335083 [diff] |
[Canvas] Test that toggling acceleration aborts pending hibernation I will shortly be modifying the logic of how HTMLCanvasElement::ReplaceExistingResourceProvider() works to no longer destroy the Canvas2DLayerBridge instance (and CanvasHibernationHandler instance) internally. In preparation for that change, this CL introduces a test that verifies that disabling then re-enabling acceleration causes a pending hibernation to be aborted. The test currently holds because disabling acceleration causes the hibernation handler to be destroyed. Post-the change described above, production behavior will actually change such that the pending hibernation will *not* be aborted in this case. This test will then correspondingly change to reflect the change in production behavior. Bug: 40280152 Change-Id: I4e5cda665653573e87b79db0b1adf4691d1048be Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6109051 Reviewed-by: Jean-Philippe Gravel <jpgravel@chromium.org> Commit-Queue: Colin Blundell <blundell@chromium.org> Cr-Commit-Position: refs/heads/main@{#1402831}
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.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.