Created attachment 670021 [details] [diff] [review] Patch for putImageData rv1.0 Because GfxImageSurface are created with the argument value of aClear "true" in the following two functions, those gfxImageSurface are filled with zeros by memset. nsCanvasRenderingContext2DAzure::PutImageData_explicit() nsCanvasRenderingContext2D::PutImageData_explicit() But we set a value to every pixel in the gfxImageSurface right after that, so filling the gfxImageSurface with zeros seems to be waste of CPU cycles.
Comment on attachment 670021 [details] [diff] [review] Patch for putImageData rv1.0 Looks great to me.
I don't see any Try results here, so I've triggered a run. I'll push it if it's green. https://tbpl.mozilla.org/?tree=Try&rev=b8bd135fa1a6 Thanks for the patch, Tete! One request - to make life easier for those checking in on your behalf, please make sure that your future patches follow the guidelines below. Thanks! https://developer.mozilla.org/en-US/docs/Creating_a_patch_that_can_be_checked_in
Ryan, thank you for letting me know the document. I'll read it carefully so that I can create my patches according to the guidelines. Thank you!
Looks green. Thanks again! https://hg.mozilla.org/integration/mozilla-inbound/rev/8766ced01b38