| 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_SHARE_GROUP_H_ | 5 #ifndef UI_GL_GL_SHARE_GROUP_H_ |
| 6 #define UI_GL_GL_SHARE_GROUP_H_ | 6 #define UI_GL_GL_SHARE_GROUP_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 // there are no initialized contexts in the share group. | 30 // there are no initialized contexts in the share group. |
| 31 void* GetHandle(); | 31 void* GetHandle(); |
| 32 | 32 |
| 33 // Returns a pointer to any initialized context in the share group | 33 // Returns a pointer to any initialized context in the share group |
| 34 // or NULL if there are no initialized contexts in the share group. | 34 // or NULL if there are no initialized contexts in the share group. |
| 35 GLContext* GetContext(); | 35 GLContext* GetContext(); |
| 36 | 36 |
| 37 // Sets and returns the unique shared GL context. Used for context | 37 // Sets and returns the unique shared GL context. Used for context |
| 38 // virtualization. | 38 // virtualization. |
| 39 void SetSharedContext(GLContext* context); | 39 void SetSharedContext(GLContext* context); |
| 40 |
| 40 GLContext* GetSharedContext(); | 41 GLContext* GetSharedContext(); |
| 41 | 42 |
| 42 #if defined(OS_MACOSX) | 43 #if defined(OS_MACOSX) |
| 43 // Sets and returns the ID of the renderer that all contexts in this share | 44 // Sets and returns the ID of the renderer that all contexts in this share |
| 44 // group should be on. | 45 // group should be on. |
| 45 void SetRendererID(int renderer_id); | 46 void SetRendererID(int renderer_id); |
| 46 int GetRendererID(); | 47 int GetRendererID(); |
| 47 #endif | 48 #endif |
| 48 | 49 |
| 49 private: | 50 private: |
| (...skipping 11 matching lines...) Expand all Loading... |
| 61 #if defined(OS_MACOSX) | 62 #if defined(OS_MACOSX) |
| 62 int renderer_id_; | 63 int renderer_id_; |
| 63 #endif | 64 #endif |
| 64 | 65 |
| 65 DISALLOW_COPY_AND_ASSIGN(GLShareGroup); | 66 DISALLOW_COPY_AND_ASSIGN(GLShareGroup); |
| 66 }; | 67 }; |
| 67 | 68 |
| 68 } // namespace gfx | 69 } // namespace gfx |
| 69 | 70 |
| 70 #endif // UI_GL_GL_SHARE_GROUP_H_ | 71 #endif // UI_GL_GL_SHARE_GROUP_H_ |
| OLD | NEW |