commit | ee351c1cd2b342cfbb059447fc0a53f14c7beb16 | [log] [tgz] |
---|---|---|
author | Michael Thiessen <mthiesse@chromium.org> | Wed Apr 11 16:29:58 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Apr 11 16:29:58 2018 |
tree | 5bfc9806e676cdcec3419ec399b6f23416549d4a | |
parent | 4d7b7b48a0c12c3b4d1f1f3901b1ee35b924ad57 [diff] |
VR: Avoid drawing the overlay Texture when it's empty. The fallback Android UI path incurs a significant overhead cost to our rendering pipeline when it's active, which used to be 100% of the time. This CL uses a dummy canvas that extends the Android canvas and throws an exception every time something is drawn to it to know whether or not drawing the view tree was a no-op. If not a no-op, it actually draws the view tree into our texture-backed canvas. If the canvas is empty, then we can skip compositing it in our VR rendering pipeline. Bug: 830930 Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_vr;master.tryserver.chromium.win:win_optional_gpu_tests_rel Change-Id: Ic1c93eeae67485e4d4f450598d6b9690d60d99ba Reviewed-on: https://chromium-review.googlesource.com/999802 Commit-Queue: Michael Thiessen <mthiesse@chromium.org> Reviewed-by: Christopher Grant <cjgrant@chromium.org> Reviewed-by: Yash Malik <ymalik@chromium.org> Cr-Commit-Position: refs/heads/master@{#549907}
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 .