Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef UI_ANIMATION_METRICS_REPORTER_TEMPLATE_H_ | |
| 6 #define UI_ANIMATION_METRICS_REPORTER_TEMPLATE_H_ | |
| 7 | |
| 8 #include "base/metrics/histogram_macros.h" | |
| 9 #include "ui/compositor/layer_animation_element.h" | |
| 10 | |
| 11 namespace ui { | |
| 12 | |
| 13 template <const char* name> | |
| 14 class AnimationMetricsReporterTemplate : public AnimationMetricsReporter { | |
| 15 void Report(int value) override { UMA_HISTOGRAM_PERCENTAGE(name, value); } | |
|
rkaplow
2017/01/23 15:47:18
you can't use the macros this way: https://codesea
varkha
2017/01/24 00:18:57
The intention here was exactly to make the strings
| |
| 16 }; | |
| 17 | |
| 18 } // namespace ui | |
| 19 | |
| 20 #endif // UI_ANIMATION_METRICS_REPORTER_TEMPLATE_H_ | |
| OLD | NEW |