Reallocate multisample_renderbuffer when GPU switching
This is a temporary patch that is not well refactored but seems to make the following case work properly: * Init webgl context with low-power gpu, switch tab to one using high-power, and switch back. It renders correctly now before the os switch back to low-power. This patch doesn't work with: * Same tab switching case where user allocated multisampled buffer under a webgl 2 context * Same tab switching case with preseverDrawingbuffer: true. We'd better land this patch after the gpu pixel test is landed. Bug: 681341 Change-Id: I9c834d11ee0456545600819f2322dceb38f8a59a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1812102Reviewed-by:Zhenyao Mo <zmo@chromium.org> Reviewed-by:
Kenneth Russell <kbr@chromium.org> Commit-Queue: Shrek Shao <shrekshao@google.com> Cr-Commit-Position: refs/heads/master@{#703425}
Showing
Please register or sign in to comment