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 |
11 namespace gfx { | 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 |
19 double ANGLEPlatformImpl::currentTime() { | 19 double ANGLEPlatformImpl::currentTime() { |
20 return base::Time::Now().ToDoubleT(); | 20 return base::Time::Now().ToDoubleT(); |
21 } | 21 } |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 void ANGLEPlatformImpl::histogramSparse(const char* name, int sample) { | 100 void ANGLEPlatformImpl::histogramSparse(const char* name, int sample) { |
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 gfx | 110 } // namespace gl |
OLD | NEW |