[M120 Migration][MM] Framerate calculation
[platform/framework/web/chromium-efl.git] / media / mojo / mojom / video_decode_stats_recorder.mojom
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.
4
5 module media.mojom;
6
7 import "media/mojo/mojom/media_types.mojom";
8
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
13   // properties.
14   StartNewRecord(PredictionFeatures features);
15
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);
20 };