OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/gl/angle_platform_impl.h" | 5 #include "ui/gl/angle_platform_impl.h" |
6 | 6 |
7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
8 #include "base/metrics/sparse_histogram.h" | 8 #include "base/metrics/sparse_histogram.h" |
9 #include "base/trace_event/trace_event.h" | 9 #include "base/trace_event/trace_event.h" |
10 | 10 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 DCHECK_EQ(name, counter->histogram_name()); | 88 DCHECK_EQ(name, counter->histogram_name()); |
89 counter->Add(sample); | 89 counter->Add(sample); |
90 } | 90 } |
91 | 91 |
92 void ANGLEPlatformImpl::histogramSparse(const char* name, int sample) { | 92 void ANGLEPlatformImpl::histogramSparse(const char* name, int sample) { |
93 // For sparse histograms, we can use the macro, as it does not incorporate a | 93 // For sparse histograms, we can use the macro, as it does not incorporate a |
94 // static. | 94 // static. |
95 UMA_HISTOGRAM_SPARSE_SLOWLY(name, sample); | 95 UMA_HISTOGRAM_SPARSE_SLOWLY(name, sample); |
96 } | 96 } |
97 | 97 |
| 98 void ANGLEPlatformImpl::histogramBoolean(const char* name, bool sample) { |
| 99 histogramEnumeration(name, sample ? 1 : 0, 2); |
| 100 } |
| 101 |
98 } // namespace gfx | 102 } // namespace gfx |
OLD | NEW |