| 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> |
| 9 |
| 8 #include <map> | 10 #include <map> |
| 9 #include <set> | 11 #include <set> |
| 10 | 12 |
| 11 #include "ui/gl/gl_bindings.h" | 13 #include "ui/gl/gl_bindings.h" |
| 12 | 14 |
| 13 namespace gfx { | 15 namespace gfx { |
| 14 class MockGLInterface; | 16 class MockGLInterface; |
| 15 | 17 |
| 16 class GPUTimingFake { | 18 class GPUTimingFake { |
| 17 public: | 19 public: |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 query_id_ = 0; | 81 query_id_ = 0; |
| 80 begin_time_ = 0; | 82 begin_time_ = 0; |
| 81 } | 83 } |
| 82 }; | 84 }; |
| 83 ElapsedQuery current_elapsed_query_; | 85 ElapsedQuery current_elapsed_query_; |
| 84 }; | 86 }; |
| 85 | 87 |
| 86 } // namespace gfx | 88 } // namespace gfx |
| 87 | 89 |
| 88 #endif // UI_GL_GPU_TIMING_FAKE_H_ | 90 #endif // UI_GL_GPU_TIMING_FAKE_H_ |
| OLD | NEW |