• Kuo Jen Wei's avatar
    [CCA] Fix switch resolution race. · d3bcf216
    Kuo Jen Wei authored
    The switch resolution race is caused by logic of enabling switching
    options right after STREAMING ready and before camera configuration
    finishing. This CL fix the race by introducing new CAMERA_CONFIGURING
    state will be flagged during the camera stream reconfiguration process.
    
    Bug: b/147567355
    Test: Manually test clicking on the resolution options when it's
    clickable and won't jump back to previous option after clicked.
    
    Change-Id: I32153ff78bc1bc6a3478225479e289e5617851a2
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2082665Reviewed-by: default avatarShik Chen <shik@chromium.org>
    Reviewed-by: default avatarWei Lee <wtlee@chromium.org>
    Commit-Queue: Kuo Jen Wei <inker@chromium.org>
    Auto-Submit: Kuo Jen Wei <inker@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#748148}
    d3bcf216
state.js 4.04 KB