DescriptionMark WebGLRenderingContext as having lost context upon init failure.
r196077 added a good test verifying the handling of attempted WebGL context
creation when that fails to create an underlying drawing buffer. This
exposed an Oilpan-specific lifetime issue for the WebGLRenderingContext
object that fails to properly initialize. With Oilpan, that garbage
collected & partially initialized object will not be synchronously deleted,
but be finalized instead when the next GC strikes.
The WebGLRenderingContext object is an ActiveDOMObject attached to its
execution context, so should it be stopped before that GC strikes, it
will be forcibly removed from its (graphics system) context as part
of stopping. The partially constructed object is not prepared for that,
with failing consequences.
To avoid, if the creation of a drawing buffer fails, we explicitly mark
the object as having lost its context.
R=bajones,kbr,haraken
BUG=474665
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196188
Patch Set 1 #
Messages
Total messages: 10 (2 generated)
|