W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2010

[whatwg] Image resize API proposal

From: David Levin <levin@google.com>
Date: Tue, 25 May 2010 11:39:18 -0700
Message-ID: <AANLkTim7aAqOgKDkBe_hsd2ZJrPCKT5K5HmdBK39caC8@mail.gmail.com>
I've improved the accuracy of the canvas (resize/copy/rotate) perf test:

Here are some results in a similar format to what Mike posted (

Firefox 3.7a4 (no D2D)

Direct image copy: 39ms
Indirect copy with (via ImageData): 160ms
Copy with 2x scale: 646.5ms
Copy with 0.5x scale: 42.5ms
Copy with rotate: 358ms

Firefox 3.7a4 (D2D)

Direct image copy: 115ms
Indirect copy with (via ImageData): 365.5ms
Copy with 2x scale: 246ms
Copy with 0.5x scale: 48.5ms
Copy with rotate: 100.5ms

Chrome (45376)

Direct image copy: 32.5ms
Indirect copy with (via ImageData): 207.5ms
Copy with 2x scale: 378.5ms
Copy with 0.5x scale: 27.5ms
Copy with rotate: 367ms

While the GPU does help in some scenarios, unfortunately it must still take
some time to do its work, so it doesn't enable us to do sync apis that don't
hang the UI.

Feel free to run the test yourself and look at the code.

Best wishes,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20100525/be65fdeb/attachment.htm>
Received on Tuesday, 25 May 2010 11:39:18 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:23 UTC