Fix GL readback code to handle rowbytes correctly for non-32bit formats
authorbsalomon <bsalomon@google.com>
Mon, 1 Feb 2016 20:49:30 +0000 (12:49 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 1 Feb 2016 20:49:30 +0000 (12:49 -0800)
commit9d02b264b72be64702e43cb797b7899a8a6926ca
tree391a09559455c791b7005c510596498a11debbf4
parentb21c752eb3d55970ac45daaf3fd2cbda39c7658a
Fix GL readback code to handle rowbytes correctly for non-32bit formats

Update tests to exercise more rowbytes.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1645043006

Review URL: https://codereview.chromium.org/1645043006
src/gpu/gl/GrGLGpu.cpp
tests/ReadPixelsTest.cpp
tests/ReadWriteAlphaTest.cpp