|
When initially called, canvas.getContext() will return a fresh rendering
context object, but at the same time switch its "context mode" to a direct
one (2d or webgl), such that subsequent getContext() with the same
contextID argument will return that initially created context object.
To correctly provide that same-object identity, the wrapper object must be
marked as depending on the canvas element object, such that it will be
retained across GCs.
R=junov,haraken
BUG=450410
Review URL: https://codereview.chromium.org/1033613002
git-svn-id: svn://svn.chromium.org/blink/trunk@192465 bbb929c8-8fbe-4397-9dbb-9b2b20218538
|