• boliu@chromium.org's avatar
    aw: Fix hardware init/tear down in pop up flow · d6417554
    boliu@chromium.org authored
    Previously we did not call onDetached on old native AwContents,
    which now no longer cleans up hardware resources correctly.
    
    This also had the side effect that the following onAttach with the new
    native AwContents is ignored in java code due to attach/detach mismatch.
    
    As make onDetached more strict with respect to ordering. And lock to
    protect variable accessed on multiple threads.
    
    Also need to ensure we never requestDrawGL on the blank native
    AwContents that's destroyed during pop up.
    
    BUG=376622
    
    Review URL: https://codereview.chromium.org/288983007
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272500 0039d316-1c4b-4281-b951-d872f2087c98
    d6417554
aw_contents.cc 40 KB