[Webkit-unassigned] [Bug 104672] [GTK] Add accelerated 2D canvas support using cairo-gl

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Dec 23 12:06:02 PST 2012


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





--- Comment #9 from Martin Robinson <mrobinson at webkit.org>  2012-12-23 12:08:12 PST ---
(In reply to comment #8)

> In the patch, there is a map at the start of getImageData and an unmap at its end. Same thing for putByteArray.
> 
> But getImageData only needs to read pixels from graphic card, and putByteArray only needs to puts pixels to graphic card. So, there may be an extra glTexSubImage2D in getImageData and an extra glReadPixels in putByteArray. 

Ah, I see what you mean now. Yeah, there's definitely a chance that we can avoid an extra read here. Doing pixel upload is already pretty slow, so we likely won't be getting great performance here anyway, but your suggestion makes a lot of sense.

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