| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_GFX_GL_GL_CONTEXT_H_ | 5 #ifndef UI_GFX_GL_GL_CONTEXT_H_ |
| 6 #define UI_GFX_GL_GL_CONTEXT_H_ | 6 #define UI_GFX_GL_GL_CONTEXT_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 static bool SupportsDualGpus(); | 70 static bool SupportsDualGpus(); |
| 71 | 71 |
| 72 static GLContext* GetCurrent(); | 72 static GLContext* GetCurrent(); |
| 73 | 73 |
| 74 virtual bool WasAllocatedUsingARBRobustness(); | 74 virtual bool WasAllocatedUsingARBRobustness(); |
| 75 | 75 |
| 76 protected: | 76 protected: |
| 77 virtual ~GLContext(); | 77 virtual ~GLContext(); |
| 78 static void SetCurrent(GLContext* context, GLSurface* surface); | 78 static void SetCurrent(GLContext* context, GLSurface* surface); |
| 79 | 79 |
| 80 // Initialize function pointers to extension functions in the GL |
| 81 // implementation. Should be called immediately after this context is made |
| 82 // current. |
| 83 bool InitializeExtensionBindings(); |
| 84 |
| 80 private: | 85 private: |
| 81 scoped_refptr<GLShareGroup> share_group_; | 86 scoped_refptr<GLShareGroup> share_group_; |
| 82 friend class base::RefCounted<GLContext>; | 87 friend class base::RefCounted<GLContext>; |
| 83 DISALLOW_COPY_AND_ASSIGN(GLContext); | 88 DISALLOW_COPY_AND_ASSIGN(GLContext); |
| 84 }; | 89 }; |
| 85 | 90 |
| 86 } // namespace gfx | 91 } // namespace gfx |
| 87 | 92 |
| 88 #endif // UI_GFX_GL_GL_CONTEXT_H_ | 93 #endif // UI_GFX_GL_GL_CONTEXT_H_ |
| OLD | NEW |