• jdduke's avatar
    Reland "[Android] Preserve the front buffer when the activity is paused" · 61c7526b
    jdduke authored
    This change was reverted in r322170 due to WebView breakage. The
    ApplicationStatus dependency has been made optional, allowing
    WebView to opt-out of its use. It was speculatively reverted
    again in r327092, but that turned out to be a false alarm.
    
    Original description: ----------------------------
    
    Currently, when an activity is stopped, we explicitly hide the
    foreground Tab. This is problematic, as current hiding semantics
    might clear the visual front buffer before the window is hidden.
    This in turn causes an unpleasant flickering during activity
    transitions, e.g., when backgrounding Chrome or locking the screen.
    
    Wire Activity onPause/onResume notifications to WindowAndroidObservers,
    allowing the foreground tab to preserve its front buffer while hiding
    its web content. If the tab is explicitly hidden, or the root window
    is lost, the front buffer will be cleared as usual.
    
    BUG=481450,434401
    
    Review URL: https://codereview.chromium.org/1001573003
    
    Cr-Commit-Position: refs/heads/master@{#329283}
    61c7526b
delegated_frame_evictor.h 1.28 KB