Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Side by Side Diff: ui/compositor/animation_metrics_reporter_template.h

Issue 2631333002: [animations] Adds metrics for jank on selected layer animations (Closed)
Patch Set: Adds UMA reporting for ripples and overview mode (extern constexpr) Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW
« no previous file with comments | « ui/compositor/BUILD.gn ('k') | ui/compositor/compositor.h » ('j') | ui/compositor/compositor.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698