Implement VideoDecodeStatsDB with LevelDB

Desktop / Chromium - Chris Cunningham [chromium.org] - 10 October 2017 18:08 EDT

The LevelDB implementation supports the production use case of storing
video decode statistics for recall to answer MediaCapabilities queries.

This CL implements the interface and tests. A later CL will instantiate the DB as part of the VideoDecodePerfHistory service for actual usage.

Kudos to mlamouri@ for first implementing this in https://chromium-review.googlesource.com/c/chromium/src/+/625962

TEST: added to media_unittests Bug: 695264 Change-Id: I347d4c25b74be65c278a563f07d439cfab2c8555 Reviewed-on: https://chromium-review.googlesource.com/692916

b771734 Implement VideoDecodeStatsDB with LevelDB
media/mojo/BUILD.gn | 3 +
media/mojo/services/BUILD.gn | 15 +-
media/mojo/services/DEPS | 3 +
media/mojo/services/media_capabilities_database.cc | 18 --
media/mojo/services/media_capabilities_database.h | 64 -------
media/mojo/services/video_decode_perf_history.cc | 39 ++---
media/mojo/services/video_decode_perf_history.h | 15 +-
.../services/video_decode_perf_history_unittest.cc | 80 +++++----
media/mojo/services/video_decode_stats.proto | 19 ++
media/mojo/services/video_decode_stats_db.cc | 18 ++
media/mojo/services/video_decode_stats_db.h | 61 +++++++
media/mojo/services/video_decode_stats_db_impl.cc | 194 +++++++++++++++++++++
media/mojo/services/video_decode_stats_db_impl.h | 97 +++++++++++
.../services/video_decode_stats_db_unittest.cc | 145 +++++++++++++++
14 files changed, 623 insertions(+), 148 deletions(-)

Upstream: git.chromium.org


  • Share