Fix OOPR render issue with WebGL 2.0 page and virtualized contexts
WebGL 2.0 may modify texture unit 0 & sampler unit 0. However we create Skia GrContext with a ES2 context. So the skia isn't aware of the sampler unit and it will not restore sampler unit when GrContext::resetContext() is called. Fix the problem by restoring sampler unit 0 to ground state in ContextState::RestoreAllTextureUnitAndSamplerBindings() Bug: 1057271 Change-Id: I9d4c15d975236e50bfa726669eb8cbdf25b736b7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2148953Reviewed-by:Jonathan Backer <backer@chromium.org> Commit-Queue: Peng Huang <penghuang@chromium.org> Cr-Commit-Position: refs/heads/master@{#759004}
Showing
Please register or sign in to comment