Disallow users modify canvas after it transfers control to offscreen

After a canvas has transferred its control to Offscreen, we should not allow
users to perform resizing, toDataURL, toBlob and getContext.

This is a reland of
https://crrev.com/85264448db0298f836e6d7bf95ad11134637e4ed
at refs/heads/master@{#418114}.

BUG=563852

Review-Url: https://codereview.chromium.org/2323933004
Cr-Commit-Position: refs/heads/master@{#418357}
8 files changed