• Eric Karl's avatar
    Android OOP-D: Add low-bit-depth handling to InProcessCommandBuffer · 304eff1e
    Eric Karl authored
    InProcessCommandBuffer doesn't currently handle dropping to 565
    low-bit-depth on low-end Android. This CL adds this logic.
    
    To safely handle low bit depth and virtualized contexts, we need
    to know whether our target bit depth is compatible with the default
    offscreen context. This change passes the surface format of this
    context through CommandBufferTaskExecutor to allow this to be queried
    from InProcessCommandBuffer.
    
    Finally, as error-handling for the creation of the offscreen surface
    is currently a bit scattered, this CL simplifies things by creating
    this surface during init and passing it in to GpuChannelManager, so
    any callers can just assume success.
    
    BUG=868476
    
    Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel;master.tryserver.blink:linux_trusty_blink_rel
    Change-Id: I8ffaa05e2ebbf6e910e76a8ef75095edf1cd3fe5
    Reviewed-on: https://chromium-review.googlesource.com/1150966Reviewed-by: default avatarBo <boliu@chromium.org>
    Reviewed-by: default avatarAntoine Labour <piman@chromium.org>
    Commit-Queue: Eric Karl <ericrk@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#578796}
    304eff1e
viz_main_impl.cc 15.2 KB