Chromium Code Reviews| Index: ui/gl/gl_share_group.h |
| diff --git a/ui/gl/gl_share_group.h b/ui/gl/gl_share_group.h |
| index e069d657e62f3d40a7573878ff8fafa151151c88..ab92683f9b7a0548540e554aca536a2b8a1c8bc3 100644 |
| --- a/ui/gl/gl_share_group.h |
| +++ b/ui/gl/gl_share_group.h |
| @@ -38,6 +38,13 @@ class GL_EXPORT GLShareGroup : public base::RefCounted<GLShareGroup> { |
| void SetSharedContext(GLContext* context); |
| GLContext* GetSharedContext(); |
| +#if defined(OS_MACOSX) |
| + // Sets and returns the renderer that all contexts in this share |
| + // group should be on. |
| + void SetRenderer(int renderer); |
| + int GetRenderer(); |
|
Ken Russell (switch to Gerrit)
2013/03/01 22:00:58
Let's name these SetRendererID / GetRendererID.
|
| +#endif |
| + |
| private: |
| friend class base::RefCounted<GLShareGroup>; |
| @@ -50,6 +57,10 @@ class GL_EXPORT GLShareGroup : public base::RefCounted<GLShareGroup> { |
| GLContext* shared_context_; |
| +#if defined(OS_MACOSX) |
| + int renderer_; |
| +#endif |
| + |
| DISALLOW_COPY_AND_ASSIGN(GLShareGroup); |
| }; |