Bug 75142

Summary: [chromium] Shadowing of the Canvas' backing doesn't work with BGRA textures
Product: WebKit Reporter: Vangelis Kokkevis <vangelis>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: husky, jamesr, kbr, schenney, twiz
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Description Vangelis Kokkevis 2011-12-22 15:42:19 PST
Canvas2DLayerChromium::updateCompositorResources() calls glCopyTexImage2D to copy from the canvas backing texture to the texture used by the compositor. However, this copy can only work if the canvas backing is an RGBA texture and will fail for BGRA (the BGRA extension doesn't support glCopyTexImage2D). We need an alternative mechanism to do the copy either by explicitly drawing a textured quad onto the bound fbo or using the command buffer extension that twiz@ is working on.