
This CL re-lands crrev.com/c/6068397. The CL was reverted because, the original CL did not remove the usage of the banned method in `SurfaceTreeHost` class. Bug: b:382345847 Change-Id: I82e6170983d77be3a97e201c4364e5f0c42a9d91 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6175787 Reviewed-by: Mitsuru Oshima <oshima@chromium.org> Reviewed-by: Jonathan Ross <jonross@chromium.org> Commit-Queue: Zoraiz Naeem <zoraiznaeem@chromium.org> Reviewed-by: Allen Bauer <kylixrd@chromium.org> Cr-Commit-Position: refs/heads/main@{#1408170}