1 // Copyright 2017 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
7 import "media/mojo/mojom/media_types.mojom";
9 // Interface for media players in the renderer to send decode stats to the
10 // browser process. Each player will have its own recorder instance.
11 interface VideoDecodeStatsRecorder {
12 // Will finalize any ongoing record and begin a new record with the given
14 StartNewRecord(PredictionFeatures features);
16 // Update stats values for the current record. Each update overrides the
17 // previous values. Values should only be considered final when a new
18 // record is started or upon IPC disconnect.
19 UpdateRecord(PredictionTargets targets);