gpu: Add needs_gl to SharedContextState::IsCurrent
When vulkan is used for composite and raster, there are still code paths that needs GL. SharedContextState::IsCurrent always return true if vulkan (or some other non-gl gr_context_type) is used. For the code paths that always needs GL, IsCurrent is returning the wrong value, leading to some no-context-current errors. Fix this by adding a bool needs_gl parameter that defaults to false (similar to MakeCurrent), and set it to true for the two cases that I ran into. Bug: 1151376 Change-Id: Idec4a231579b067d5aa9b60ae21d6a2a11e794ce Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2553285Reviewed-by:Peng Huang <penghuang@chromium.org> Commit-Queue: Bo <boliu@chromium.org> Cr-Commit-Position: refs/heads/master@{#830250}
Showing
Please register or sign in to comment