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

Side by Side Diff: ui/gl/gpu_timing_fake.h

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, 6 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/gpu_timing.cc ('k') | ui/gl/gpu_timing_fake.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 #ifndef UI_GL_GPU_TIMING_FAKE_H_ 5 #ifndef UI_GL_GPU_TIMING_FAKE_H_
6 #define UI_GL_GPU_TIMING_FAKE_H_ 6 #define UI_GL_GPU_TIMING_FAKE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
11 #include <set> 11 #include <set>
12 12
13 #include "ui/gl/gl_bindings.h" 13 #include "ui/gl/gl_bindings.h"
14 14
15 namespace gfx { 15 namespace gl {
16 class MockGLInterface; 16 class MockGLInterface;
17 17
18 class GPUTimingFake { 18 class GPUTimingFake {
19 public: 19 public:
20 GPUTimingFake(); 20 GPUTimingFake();
21 ~GPUTimingFake(); 21 ~GPUTimingFake();
22 22
23 void Reset(); 23 void Reset();
24 24
25 // Used to set the current GPU time queries will return. 25 // Used to set the current GPU time queries will return.
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 void Reset() { 79 void Reset() {
80 active_ = false; 80 active_ = false;
81 query_id_ = 0; 81 query_id_ = 0;
82 begin_time_ = 0; 82 begin_time_ = 0;
83 } 83 }
84 }; 84 };
85 ElapsedQuery current_elapsed_query_; 85 ElapsedQuery current_elapsed_query_;
86 }; 86 };
87 87
88 } // namespace gfx 88 } // namespace gl
89 89
90 #endif // UI_GL_GPU_TIMING_FAKE_H_ 90 #endif // UI_GL_GPU_TIMING_FAKE_H_
OLDNEW
« no previous file with comments | « ui/gl/gpu_timing.cc ('k') | ui/gl/gpu_timing_fake.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698