1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20

media / mojo / mojom / video_decode_stats_recorder.mojom [blame]

// Copyright 2017 The Chromium Authors
// 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/mojom/media_types.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(PredictionFeatures features);

  // 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(PredictionTargets targets);
};