• ericrk's avatar
    Fix LayerTreeHostCacheBehaviorOnOutputSurfaceRecreated test · 1e16f5f8
    ericrk authored
    LayerTreeHostCacheBehaviorOnOutputSurfaceRecreated test was incorrectly
    relying on WillBeginImplFrameOnThread only being called once after the
    OutputSurface was recreated. In reality, this function could be called
    multiple times.
    
    This patch causes us to handle cleanup in DidInitializeOutputSurface,
    which will only be called once after recreating an OutputSurface.
    
    BUG=642881,642836
    CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel
    
    Review-Url: https://codereview.chromium.org/2297413002
    Cr-Commit-Position: refs/heads/master@{#415791}
    1e16f5f8
layer_tree_host_unittest.cc 237 KB