gpu: Fix format/internalformat confusion

Several code paths in the command decoder were creating textures with
format == internalformat. However, many internalformat values are not
valid as format values. This was not checked before , but now it results in errors. This change
calls TextureManager::ExtractFormatFromStorageFormat to get the correct
format for the specified internalformat.

Fixes video display in the YouTube Android app on some Chrome OS

Bug: 920967, 809237, 628064

Change-Id: I93c6449286094d895f45572fa0db5dbead1797ea
Commit-Queue: James Darpinian <>
Reviewed-by: Antoine Labour <>
Cr-Commit-Position: refs/heads/master@{#624907}
3 files changed