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

Side by Side Diff: ui/gl/angle_platform_impl.cc

Issue 2373523003: Clean up sparse_histogram.h header (Closed)
Patch Set: Rebase update on Oct 18 Created 4 years, 2 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
« no previous file with comments | « ui/display/win/screen_win.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/histogram_macros.h"
9 #include "base/trace_event/trace_event.h" 9 #include "base/trace_event/trace_event.h"
10 10
11 namespace gl { 11 namespace gl {
12 12
13 ANGLEPlatformImpl::ANGLEPlatformImpl() { 13 ANGLEPlatformImpl::ANGLEPlatformImpl() {
14 } 14 }
15 15
16 ANGLEPlatformImpl::~ANGLEPlatformImpl() { 16 ANGLEPlatformImpl::~ANGLEPlatformImpl() {
17 } 17 }
18 18
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // For sparse histograms, we can use the macro, as it does not incorporate a 101 // For sparse histograms, we can use the macro, as it does not incorporate a
102 // static. 102 // static.
103 UMA_HISTOGRAM_SPARSE_SLOWLY(name, sample); 103 UMA_HISTOGRAM_SPARSE_SLOWLY(name, sample);
104 } 104 }
105 105
106 void ANGLEPlatformImpl::histogramBoolean(const char* name, bool sample) { 106 void ANGLEPlatformImpl::histogramBoolean(const char* name, bool sample) {
107 histogramEnumeration(name, sample ? 1 : 0, 2); 107 histogramEnumeration(name, sample ? 1 : 0, 2);
108 } 108 }
109 109
110 } // namespace gl 110 } // namespace gl
OLDNEW
« no previous file with comments | « ui/display/win/screen_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698