Add color space info to CopyOutputResult

The data from CopyOutputResult is from a framebuffer that is in a
particular color space (specified by its RenderPass). That color
space information was not propagated to the CopyOutputResult.
Fix this.

For textures, populate the texture mailbox's color space.
Add pixel tests for all of this path.

Do not add support for the SkBitmap path yet. That will come in
a future patch.

R=enne, miu, dcheng
TBR=rockot

Bug: 758057
Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel
Change-Id: Ic889c51660ff4af02e082eb2867c956fa2212001
Reviewed-on: https://chromium-review.googlesource.com/651691
Commit-Queue: ccameron chromium <ccameron@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Yuri Wiitala <miu@chromium.org>
Reviewed-by: enne <enne@chromium.org>
Cr-Commit-Position: refs/heads/master@{#500766}
7 files changed