| 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 #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 Loading... |
| 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_ |
| OLD | NEW |