Correct the OffscreenCanvas.getContext API

Currently this API takes a DOMString as its first argument. The spec
recently changed to let it take an enum as the first argument. This CL
makes the change and adds a test case.

This CL also makes OffscreenCanvas support webgl2 context creation. To test that, there is a github pull request here:
https://github.com/KhronosGroup/WebGL/pull/2159
Locally it works fine.

BUG=666024, 666339
TBR=haraken@chromium.org
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel

Review-Url: https://codereview.chromium.org/2509193002
Cr-Commit-Position: refs/heads/master@{#433721}
7 files changed