• boliu's avatar
    Clean up WebMediaPlayerAndroid needs_establish_peer_ · 701cb640
    boliu authored
    needs_establish_peer_ has been used to skip actual estalishing a surface
    texture peer based on many conditions. Not all places that modify
    actually checks all these conditions so there are bound to be some bugs.
    
    This CL aims to tease out all these different conditions and put them in
    a single function EstablishSurfaceTexturePeerIfNeeded. This function
    should be called any time these conditions are changed. Makes for much
    saner reading.
    
    BUG=412578
    
    Review URL: https://codereview.chromium.org/557593002
    
    Cr-Commit-Position: refs/heads/master@{#294068}
    701cb640
webmediaplayer_android.cc 61.3 KB