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

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

Issue 1998723002: Move code in ui/gl/* from gfx:: to gl:: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 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/gl/angle_platform_impl.h ('k') | ui/gl/egl_api_unittest.cc » ('j') | 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/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
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
OLDNEW
« no previous file with comments | « ui/gl/angle_platform_impl.h ('k') | ui/gl/egl_api_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698