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
Commit-Queue: ccameron <>
Reviewed-by: Geoff Lang <>
Cr-Original-Commit-Position: refs/heads/master@{#786858}
Cr-Mirrored-Commit: 45ad305e9f86f212bb60978ad90564c366fceb6c
3 files changed