OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_GL_CONTEXT_H_ | 5 #ifndef UI_GL_GL_CONTEXT_H_ |
6 #define UI_GL_GL_CONTEXT_H_ | 6 #define UI_GL_GL_CONTEXT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | |
12 #include "base/cancelable_callback.h" | 11 #include "base/cancelable_callback.h" |
| 12 #include "base/macros.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/synchronization/cancellation_flag.h" | 15 #include "base/synchronization/cancellation_flag.h" |
16 #include "ui/gl/gl_share_group.h" | 16 #include "ui/gl/gl_share_group.h" |
17 #include "ui/gl/gl_state_restorer.h" | 17 #include "ui/gl/gl_state_restorer.h" |
18 #include "ui/gl/gpu_preference.h" | 18 #include "ui/gl/gpu_preference.h" |
19 | 19 |
20 namespace gpu { | 20 namespace gpu { |
21 class GLContextVirtual; | 21 class GLContextVirtual; |
22 } // namespace gpu | 22 } // namespace gpu |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 void SetCurrent(GLSurface* surface) override; | 199 void SetCurrent(GLSurface* surface) override; |
200 | 200 |
201 private: | 201 private: |
202 scoped_ptr<gfx::GPUTiming> gpu_timing_; | 202 scoped_ptr<gfx::GPUTiming> gpu_timing_; |
203 DISALLOW_COPY_AND_ASSIGN(GLContextReal); | 203 DISALLOW_COPY_AND_ASSIGN(GLContextReal); |
204 }; | 204 }; |
205 | 205 |
206 } // namespace gfx | 206 } // namespace gfx |
207 | 207 |
208 #endif // UI_GL_GL_CONTEXT_H_ | 208 #endif // UI_GL_GL_CONTEXT_H_ |
OLD | NEW |