Bug 21008

Summary: getting pixels by index from CanvasPixelArray is unnecessarily slow
Product: WebKit Reporter: Darin Adler <darin>
Component: WebCore JavaScriptAssignee: Oliver Hunt <oliver>
Status: RESOLVED FIXED    
Severity: Normal CC: darin
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
Attachments:
Description Flags
patch, already reviewed (for Oliver) oliver: review+

Darin Adler
Reported 2008-09-22 15:01:56 PDT
Oliver noticed that when we index into a CanvasPixelArray, we convert the index to a string and put it into the identifier table each time. The identifier is then ignored by the CanvasPixelArray::indexGetter function. This extra work is bad!
Attachments
patch, already reviewed (for Oliver) (15.04 KB, patch)
2008-09-22 15:11 PDT, Darin Adler
oliver: review+
Darin Adler
Comment 1 2008-09-22 15:11:24 PDT
Created attachment 23674 [details] patch, already reviewed (for Oliver)
Oliver Hunt
Comment 2 2008-09-23 00:41:55 PDT
Comment on attachment 23674 [details] patch, already reviewed (for Oliver) Removed the toStrictUInt32 as that broke compat with ffx3
Oliver Hunt
Comment 3 2008-09-23 00:42:13 PDT
Landed r36801
Oliver Hunt
Comment 4 2008-09-23 03:04:31 PDT
Whoops, missed afile A WebCore/bindings/js/JSCanvasPixelArrayCustom.h Committed r36803
Note You need to log in before you can comment on or make changes to this bug.