[chromium] Set DrawingBuffer's context's parent before publishing its backing store to the parent. This allows accelerated 2D canvas elements to be moved between windows.
Created attachment 101528 [details] Patch 1
The comment isn't exactly accurate. This patch allows an accelerated 2D canvas to be created in a newly opened windows but not moved from one to another.
Comment on attachment 101528 [details] Patch 1 Why are you calling platformTexture()? If you just want m_context to be current, how about calling makeContextCurrent()?
(In reply to comment #3) > (From update of attachment 101528 [details]) > Why are you calling platformTexture()? If you just want m_context to be current, how about calling makeContextCurrent()? GraphicsContext3DChromium::platformTexture sets the context's parent to that of the associated view. It also returns the texture ID in the context of that parent but that is not used for 2D canvas.
Created attachment 101540 [details] Patch 2
Updated patch as discussed with jamesr.
Comment on attachment 101540 [details] Patch 2 Great! R=me
Comment on attachment 101540 [details] Patch 2 Clearing flags on attachment: 101540 Committed r91441: <http://trac.webkit.org/changeset/91441>
All reviewed patches have been landed. Closing bug.