Handle invalid format/type in texture uploading when FlipY/PremultiplyAlpha is set.

Currently if uploading from ArrayBuffer, NOTREACHED() will be hit in such situations
and in Release build, after hitting NOTREACHED() statement, unintended code path is taken.

BUG=765469
TEST=webgl_conformance
R=kbr@chromium.org
TBR=zmo@chromium.org

(cherry picked from commit 73ac8f4a66c057b6b22a1c2c6e042c77ef39450d)

Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Change-Id: Icf1ab03723b6c13595bd6c4dbc4e5fa40fdf9d96
Reviewed-on: https://chromium-review.googlesource.com/685487
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Commit-Queue: Zhenyao Mo <zmo@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#504568}
Reviewed-on: https://chromium-review.googlesource.com/696284
Cr-Commit-Position: refs/branch-heads/3202@{#554}
Cr-Branched-From: fa6a5d87adff761bc16afc5498c3f5944c1daa68-refs/heads/master@{#499098}
2 files changed