1 // Copyright 2022 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.
5 #ifndef CC_METRICS_CUSTOM_METRICS_RECORDER_H_
6 #define CC_METRICS_CUSTOM_METRICS_RECORDER_H_
8 #include "cc/cc_export.h"
12 // Customize cc metric recording. E.g. reporting metrics under different names.
13 class CC_EXPORT CustomMetricRecorder {
15 static CustomMetricRecorder* Get();
17 // Invoked to report "PercentDroppedFrames_1sWindow".
18 virtual void ReportPercentDroppedFramesInOneSecoundWindow(double percent) = 0;
21 CustomMetricRecorder();
22 virtual ~CustomMetricRecorder();
27 #endif // CC_METRICS_CUSTOM_METRICS_RECORDER_H_