Canvas LowLatency: make getContext() idempotent
Canvas.getContext() method is idempotent, i.e. successive calls return the same context over and over. When the context is lowLatency, however, we think it's an OffscreenCanvas context and fail. This CL fixes that and adds a LayoutTest to verify the new functionality. Bug: 895551 Change-Id: I1ae140080915a277eb45ac01486e6c7c1464aefa Reviewed-on: https://chromium-review.googlesource.com/c/1294090Reviewed-by:Fernando Serboncini <fserb@chromium.org> Commit-Queue: Miguel Casas <mcasas@chromium.org> Cr-Commit-Position: refs/heads/master@{#601652}
Showing
Please register or sign in to comment