OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 APP_GFX_GL_GL_CONTEXT_H_ | 5 #ifndef APP_GFX_GL_GL_CONTEXT_H_ |
6 #define APP_GFX_GL_GL_CONTEXT_H_ | 6 #define APP_GFX_GL_GL_CONTEXT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/logging.h" | |
10 #include "build/build_config.h" | 9 #include "build/build_config.h" |
11 #include "gfx/native_widget_types.h" | 10 #include "gfx/native_widget_types.h" |
12 #include "gfx/size.h" | 11 #include "gfx/size.h" |
13 | 12 |
14 namespace gfx { | 13 namespace gfx { |
15 | 14 |
16 // Encapsulates an OpenGL context, hiding platform specific management. | 15 // Encapsulates an OpenGL context, hiding platform specific management. |
17 class GLContext { | 16 class GLContext { |
18 public: | 17 public: |
19 GLContext() {} | 18 GLContext() {} |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 protected: | 61 protected: |
63 bool InitializeCommon(); | 62 bool InitializeCommon(); |
64 | 63 |
65 private: | 64 private: |
66 DISALLOW_COPY_AND_ASSIGN(GLContext); | 65 DISALLOW_COPY_AND_ASSIGN(GLContext); |
67 }; | 66 }; |
68 | 67 |
69 } // namespace gfx | 68 } // namespace gfx |
70 | 69 |
71 #endif // APP_GFX_GL_GL_CONTEXT_H_ | 70 #endif // APP_GFX_GL_GL_CONTEXT_H_ |
OLD | NEW |