gfxUtils::ConvertBGRAtoRGBA() seems not optimum.
libyuv::ABGRToARGB() is already used similar way in the following. https://dxr.mozilla.org/mozilla-central/source/dom/canvas/ImageBitmap.cpp#236
Before applying attachment 8790189 [details] [diff] [review], thumbnail's color conversion took 0.4ms-1.0ms. By attachment 8790189 [details] [diff] [review], it became 0.3ms.
Attachment #8790189 - Flags: review?(jmuizelaar)
Attachment #8790189 - Flags: review?(jmuizelaar) → review+
Pushed by email@example.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/c75b43f81d5c Optimize gfxUtils::ConvertBGRAtoRGBA() r=jrmuizel
Status: NEW → RESOLVED
Last Resolved: 2 years ago
status-firefox51: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
You need to log in before you can comment on or make changes to this bug.