cc: TextureUploader - Reset GL_UNPACK_ALIGNMENT after Gpu Raster.
commit188a15c6786087d9be2b0fd92ef05d73b3e8fb27
authorvmiura <vmiura@chromium.org>
Thu, 25 Dec 2014 23:11:14 +0000 (25 15:11 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 25 Dec 2014 23:12:02 +0000 (25 23:12 +0000)
treec54cc28f70b76ef1794e0213dc492d98b28e792a
parent2015fdb99a431c52f27706ba0206f942dc21997a
cc: TextureUploader - Reset GL_UNPACK_ALIGNMENT after Gpu Raster.

TextureUploader assumes GL_UNPACK_ALIGNMENT is 4 for performance reasons
however Ganesh may modify GL_UNPACK_ALIGNMENT.

Explicitly reset GL_UNPACK_ALIGNMENT to 4 after Gpu Raster.

BUG=442966

Review URL: https://codereview.chromium.org/817673004

Cr-Commit-Position: refs/heads/master@{#309653}
cc/BUILD.gn
cc/cc_tests.gyp
cc/output/gl_renderer.cc
cc/resources/scoped_gpu_raster.cc
cc/resources/scoped_gpu_raster_unittest.cc [new file with mode: 0644]
cc/test/test_gles2_interface.cc
cc/test/test_gles2_interface.h
cc/test/test_web_graphics_context_3d.cc
cc/test/test_web_graphics_context_3d.h