SharedContextState: Avoid unnecessary calls to MakeCurrent
The clients of SharedContextState (OOP-R, SharedImage, and SkiaRenderer) do not care which GLSurface is bound as default FBO in the common case. Changing the current surface has a non-trivial cost on Android Adreno devices, even with virtual contexts enabled. This CL does a bit of caching to avoid these unnecessary calls. Change-Id: I0e3ec6308659644a725723295ef0b3109f22794f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1969736 Commit-Queue: Jonathan Backer <backer@chromium.org> Reviewed-by:Peng Huang <penghuang@chromium.org> Cr-Commit-Position: refs/heads/master@{#725978}
Showing
Please register or sign in to comment