Descriptioncc: 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
Committed: https://crrev.com/188a15c6786087d9be2b0fd92ef05d73b3e8fb27
Cr-Commit-Position: refs/heads/master@{#309653}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Reset GL_UNPACK_ALIGNMENT=4 in ScopedGpuRaster::EndGpuRaster() #Patch Set 3 : Apply fix to ScopedUseGrContext too (using ScopedGpuRaster for both). #Patch Set 4 : Use ScopedGpuRaster rather than extend ScopedGpuRaster. #
Total comments: 2
Patch Set 5 : Add unittest for ScopedGpuRaster state restore. #
Total comments: 1
Patch Set 6 : +BUILD.gn #Patch Set 7 : Bind context provider to current thread. #
Messages
Total messages: 20 (2 generated)
|