Now swapBgrToRgb() make two masking to get R and B components to the right place: return ((pixel << 16) & 0xff0000) | ((pixel >> 16) & 0xff) | (pixel & 0xff00ff00); We can get the same result with just one: return (((pixel << 16) | (pixel >> 16)) & 0x00ff00ff) | (pixel & 0xff00ff00);
Created attachment 176713 [details] proposed patch
Comment on attachment 176713 [details] proposed patch r=me
Comment on attachment 176713 [details] proposed patch Clearing flags on attachment: 176713 Committed r136375: <http://trac.webkit.org/changeset/136375>
All reviewed patches have been landed. Closing bug.