[Webkit-unassigned] [Bug 76225] Release WebGL contexts eagerly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 19 10:43:16 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=76225





--- Comment #4 from Kenneth Russell <kbr at google.com>  2012-01-19 10:43:16 PST ---
(In reply to comment #3)
> Here is the rough idea:
> Let HTMLCanvasElement inherits from FrameDestructionObserver. When the frame is destroyed, then the context (m_context) of HTMLCanvasElement will be cleared. Make sense?
> 
> My question is, is it okay to destroy the context for both WebGLRenderingContext and CanvasRenderingContext2D?

I don't think that's the best way to do this. I would instead make a FrameDestructionObserver specifically for the WebGLRenderingContext, but make sure that if the WebGLRenderingContext is destroyed before the frame, that the observer gets unregistered.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list