MojoVideoDecoder: Add histogram to track initialization and error.
The autotest video_ChromeHWDecodeUsed verifies Chrome used the HW
decoding when playing a video stream by checking the histogram value,
which is reported from GpuVideoDecoder.
In order to keep the test pass during switching from GpuVideoDecoder
to MojoVideoDecoder, we have to report the same histogram value
temporarily from MojoVideoDecoder.
With this CL, we can enable MojoVideoDecoder at ChromeOS platform.
BUG=chromium:902968
TEST=Pass video_ChromeHWDecodeUsed autotest on Eve
TEST=Play video at Youtube on Eve and confirm the successfull option
of Media.GpuVideoDecoderInitializeStatus are increased.
Change-Id: I26fc53704843e9b153bbee304e8f60ab3a7b0417
Reviewed-on: https://chromium-review.googlesource.com/c/1328634
Commit-Queue: Chih-Yu Huang <akahuang@chromium.org>
Reviewed-by:
Dan Sanders <sandersd@chromium.org>
Cr-Commit-Position: refs/heads/master@{#607890}
Showing
Please register or sign in to comment