[Webkit-unassigned] [Bug 44926] Multiple accelerated 2D canvases should be able to use the same GraphicsContext3D

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 31 14:35:32 PDT 2010


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





--- Comment #16 from Chris Marrin <cmarrin at apple.com>  2010-08-31 14:35:32 PST ---
(In reply to comment #15)
> (From update of attachment 66074 [details])
> > WebCore/platform/graphics/gpu/CanvasFramebuffer.cpp:67
> > +    m_context->copyTextureToCompositor(m_offscreenColorTexture, m_offscreenParentColorTexture);
> 
> This model is wrong for EAGL (iOS). There, the model is that you are handing the FBO object to the PlatformLayer. The object you're passing is actually a RenderBuffer not a Texture, but it is still represented by an OpenGL Object handle. The model should change to hide the m_offscreenParentColorTexture in the PlatformLayer and have this call pass m_offscreenColorBuffer (renamed for clarity) and PlatformLayer.

The function would also be better named copyColorBufferToPlatformLayer() or something. 

For more on the EAGL model, it is actually a copy model. Once you hand the RenderBuffer to the Layer, that same buffer can be cleared and used again immediately. Some magic happens under the covers to adopt the current RenderBuffer by the Layer and have it replaced by a new buffer.

-- 
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