• Dale Curtis's avatar
    Stop posting video stats for every Render(); optimize storage. · 62fe0b34
    Dale Curtis authored
    There's really no reason for us to be posting this for every single
    Render() call. They can be updated nearly as quickly during each
    FrameReady() call. There's also no reason for us to create a new
    PipelineStatistics structure every time either. Instead replace
    a multitude of member variables with a PipelineStatistics member.
    
    This is an optimization of PipelineStatistics usage so that we
    can add a Decoder enum value later.
    
    BUG=793151
    TEST=existing tests pass.
    
    Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
    Change-Id: I5375acf74a625e1095e6631e177b4a04a4a0e54d
    Reviewed-on: https://chromium-review.googlesource.com/816019Reviewed-by: default avatarChrome Cunningham <chcunningham@chromium.org>
    Commit-Queue: Dale Curtis <dalecurtis@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#523171}
    62fe0b34
video_renderer_impl.cc 35.5 KB