Chameleon: Force to convert the image to RGB color format

When capturing the screen image from X using import, it may use a
colormap format in order to reduce file size, if the total number of
colors is not too much. However, it makes the image comparison failed
as it is a different format, not RGB. So force to convert it to RGB.

BUG=chromium:397284
TEST=Ran display_Resolution.mirrord on Link passed.

Change-Id: If1b2c74fa671b3f0300bf13d426540e6b1f1714d
Reviewed-on: https://chromium-review.googlesource.com/211711
Reviewed-by: Hung-ying Tyan <tyanh@chromium.org>
Commit-Queue: Wai-Hong Tam <waihong@chromium.org>
Tested-by: Wai-Hong Tam <waihong@chromium.org>
1 file changed