SharedImageBackingGLImage: Initialize IOSurface pixels

When pixel data is provided, rather than upload it using OpenGL, copy
the data directly into the IOSurface.

This is very similar to the SharedImageBackingFactoryAHB method, and
merging should be considered at some point.

Bug: 894929
Change-Id: I383e188c2c463d0e12e024bbfd61eea1c3045331
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2275357
Commit-Queue: ccameron <ccameron@chromium.org>
Reviewed-by: Geoff Lang <geofflang@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#786858}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 45ad305e9f86f212bb60978ad90564c366fceb6c
3 files changed