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

Side by Side Diff: gpu/command_buffer/service/gpu_timing.cc

Issue 932003005: gpu: Remove gpu_bindings.h inclusion from headers and reduce includes dependencies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add include logging to measurements.cc and s/uint/unsigned int/ Created 5 years, 10 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 | « gpu/command_buffer/service/gpu_timing.h ('k') | gpu/command_buffer/service/gpu_tracer.h » ('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 (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "gpu/command_buffer/service/gpu_timing.h" 5 #include "gpu/command_buffer/service/gpu_timing.h"
6 6
7 #include "base/time/time.h" 7 #include "base/time/time.h"
8 #include "ui/gl/gl_bindings.h"
8 #include "ui/gl/gl_context.h" 9 #include "ui/gl/gl_context.h"
9 #include "ui/gl/gl_version_info.h" 10 #include "ui/gl/gl_version_info.h"
10 11
11 namespace gpu { 12 namespace gpu {
12 13
13 GPUTimer::GPUTimer(GPUTiming* gpu_timing) : gpu_timing_(gpu_timing) { 14 GPUTimer::GPUTimer(GPUTiming* gpu_timing) : gpu_timing_(gpu_timing) {
14 DCHECK(gpu_timing_); 15 DCHECK(gpu_timing_);
15 memset(queries_, 0, sizeof(queries_)); 16 memset(queries_, 0, sizeof(queries_));
16 glGenQueriesARB(2, queries_); 17 glGenQueriesARB(2, queries_);
17 } 18 }
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 void GPUTiming::SetOffsetForTesting(int64 offset, bool cache_it) { 137 void GPUTiming::SetOffsetForTesting(int64 offset, bool cache_it) {
137 offset_ = offset; 138 offset_ = offset;
138 offset_valid_ = cache_it; 139 offset_valid_ = cache_it;
139 } 140 }
140 141
141 void GPUTiming::SetTimerTypeForTesting(TimerType type) { 142 void GPUTiming::SetTimerTypeForTesting(TimerType type) {
142 timer_type_ = type; 143 timer_type_ = type;
143 } 144 }
144 145
145 } // namespace gpu 146 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gpu_timing.h ('k') | gpu/command_buffer/service/gpu_tracer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698