• boliu's avatar
    Correctly track texture cleared state for sharing · 2f4ff480
    boliu authored
    When sharing textures in mailboxes using MailboxManagerSync
    there's an optimization that if textures are not updated then
    there is no need to share it again. However the code that
    checks whether textures are updated ignores the cleared
    state, causing shared texture to remain uncleared
    indefinitely.
    
    Fix by check the cleared state. And add a unit test.
    
    BUG=453199
    
    Review URL: https://codereview.chromium.org/890453002
    
    Cr-Commit-Position: refs/heads/master@{#313814}
    2f4ff480
mailbox_manager_unittest.cc 21.5 KB