commit | 00d64e2ea02ea16beb67f92ee971871402185eae | [log] [tgz] |
---|---|---|
author | Justin Novosad <junov@chromium.org> | Wed Jul 18 19:07:41 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Jul 18 19:07:41 2018 |
tree | 61b33c091e0907514915635e1806eb7625abdc4e | |
parent | ec44cf3032631790771a6ba8eba8b99fc61d5dc4 [diff] |
Make WebGL use CanvasResource for submitting to OffscreenCanvas. This CL is a step toward unifying the canvas and OffscreenCanvas presentation code paths by making WebGL contexts use CanvasResource to pass frames for OffscreenCanvases This change revamps mechanisms for triggering calls to PushFrame() The mechanisms was change to reference OffscreenCanvas object instead of rendering contexts. This fixes a destruction race condition where redereng contexts were failing to de-register themselves when their host is disposed first. We also stop requesting BeginFrames in OffscreenCanvasDidDraw in cases where the draw happens from within a rAF callback on a worker. BUG=788439 TBR=zmo@chromium.org NOTRY=true Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_layout_tests_slimming_paint_v2;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel;master.tryserver.blink:linux_trusty_blink_rel Change-Id: I36965c4a0a892484a9ede966b268c91c7a34548f Reviewed-on: https://chromium-review.googlesource.com/1135637 Commit-Queue: Justin Novosad <junov@chromium.org> Reviewed-by: Justin Novosad <junov@chromium.org> Reviewed-by: Fernando Serboncini <fserb@chromium.org> Cr-Commit-Position: refs/heads/master@{#576154}
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 .