Fix performance regression in putImageData
This CL returns to the simple direct blit code path we had before. In CL https://chromium-review.googlesource.com/c/chromium/src/+/758562 the implementation of Canvas2DLayerBridge::WritePixels was changed to go through the PaintCanvas interface, which required making an extra copy and force the pixels through an alternate color correction code path that handles alpha blending correctly. It turns out that this detour is unnecessary since alpha blending does not come into play in putImageData since it is a straight blit. BUG=802081 Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Change-Id: I3af99cc56745f6db52921282d905f73981675926 Reviewed-on: https://chromium-review.googlesource.com/883770Reviewed-by:Fernando Serboncini <fserb@chromium.org> Commit-Queue: Justin Novosad <junov@chromium.org> Cr-Commit-Position: refs/heads/master@{#531723}
Showing
Please register or sign in to comment