• Eugene Zemtsov's avatar
    Report WebMediaPlayer related memory via MemoryDumpProvider · 77d5626f
    Eugene Zemtsov authored
    * MediaMemoryDumper - simple wrapper over MemoryDumpProvider
    that takes care of registering/unregestering and calling a external
    callback.
    
    * Two instances of MediaMemoryDumper inside of WebMediaPlayerImpl.
    One runs on the media thread and counts Demuxer's memory,
    the other runs on the main thread and handles everything else
    (video, audio, data source).
    
    * The fact that demuxers need to be createad and destroyed on the
    main thread, but used only on the media thread makes things interesting.
    
    Bug: 1056839
    Change-Id: I9a3386626789ddd1079d4d6759243d7622dea39c
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2084083
    Commit-Queue: Eugene Zemtsov <eugene@chromium.org>
    Reviewed-by: default avatarDale Curtis <dalecurtis@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#747585}
    77d5626f
BUILD.gn 16.9 KB