Bug 959627 - BitmapUtils.getDominantColor can be expensive r=margaret