Updates on canvas backreference on canvas rendering contexts
Based on recent proposal (
https://wiki.whatwg.org/wiki/OffscreenCanvas) change,
the backreference to either html canvas or offscreen canvas should be named as
"canvas" consistently for all rendering contexts.
This CL changes the the different name "offscreencanvas" in
OffscreenCanvasRenderingContext2D. Also, this CL allows Webgl rendering contexts
that are created from OffscreenCanvas to return the OffscreenCanvas, and those
that are created from HTMLCanvas to return the HTMLCanvasElement, via the same
"canvas" attribute.
BUG=
637022
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.win:win_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel
Committed:
https://crrev.com/903a3a827ddbf8dc46ada202c6768a997860c7bf
Cr-Commit-Position: refs/heads/master@{#411444}