• Bo Liu's avatar
    gpu: Add needs_gl to SharedContextState::IsCurrent · bbfb50f4
    Bo Liu authored
    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: default avatarPeng Huang <penghuang@chromium.org>
    Commit-Queue: Bo <boliu@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#830250}
    bbfb50f4
stream_texture_android.cc 13.1 KB