| 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 <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
| 12 #include "gfx/native_widget_types.h" | 12 #include "ui/gfx/native_widget_types.h" |
| 13 #include "gfx/size.h" | 13 #include "ui/gfx/size.h" |
| 14 | 14 |
| 15 namespace gfx { | 15 namespace gfx { |
| 16 | 16 |
| 17 // Encapsulates an OpenGL context, hiding platform specific management. | 17 // Encapsulates an OpenGL context, hiding platform specific management. |
| 18 class GLContext { | 18 class GLContext { |
| 19 public: | 19 public: |
| 20 GLContext() {} | 20 GLContext() {} |
| 21 virtual ~GLContext() {} | 21 virtual ~GLContext() {} |
| 22 | 22 |
| 23 // Destroys the GL context. | 23 // Destroys the GL context. |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 protected: | 73 protected: |
| 74 bool InitializeCommon(); | 74 bool InitializeCommon(); |
| 75 | 75 |
| 76 private: | 76 private: |
| 77 DISALLOW_COPY_AND_ASSIGN(GLContext); | 77 DISALLOW_COPY_AND_ASSIGN(GLContext); |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 } // namespace gfx | 80 } // namespace gfx |
| 81 | 81 |
| 82 #endif // APP_GFX_GL_GL_CONTEXT_H_ | 82 #endif // APP_GFX_GL_GL_CONTEXT_H_ |
| OLD | NEW |