glBindTexImage2DCHROMIUM should retain pixel format.
glBindTexImage2DCHROMIUM and glReleaseTexImage2DCHROMIUM will force the
texture format in the level info to GL_RGBA regardless of the internal
format used by the GLImage.
This CL address this by adding a GetFormat function to GLImage that
glBindTexImage2DCHROMIUM and glReleaseTexImage2DCHROMIUM will use when
updating the level info.
BUG=
Review URL: https://codereview.chromium.org/1140683002
Cr-Commit-Position: refs/heads/master@{#330336}
21 files changed