blob: 27b7e7b2cfd0196de1af66ad9864835eee235cbb [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
module media.mojom;
import "media/mojo/interfaces/media_types.mojom";
import "ui/gfx/geometry/mojo/geometry.mojom";
// Interface for media players in the renderer to send decode stats to the
// browser process. Each player will have its own recorder instance.
interface VideoDecodeStatsRecorder {
// Will finalize any ongoing record and begin a new record with the given
// properties.
StartNewRecord(VideoCodecProfile profile, gfx.mojom.Size video_size,
int32 frames_per_sec);
// Update stats values for the current record. Each update overrides the
// previous values. Values should only be considered final when a new
// record is started or upon IPC disconnect.
UpdateRecord(uint32 frames_decoded, uint32 frames_dropped);