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" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
13 #include "ui/gl/gl_export.h" | 13 #include "ui/gl/gl_export.h" |
14 | 14 |
15 namespace gfx { | 15 namespace gl { |
16 | 16 |
17 class GLContext; | 17 class GLContext; |
18 | 18 |
19 // A group of GL contexts that share an ID namespace. | 19 // A group of GL contexts that share an ID namespace. |
20 class GL_EXPORT GLShareGroup : public base::RefCounted<GLShareGroup> { | 20 class GL_EXPORT GLShareGroup : public base::RefCounted<GLShareGroup> { |
21 public: | 21 public: |
22 GLShareGroup(); | 22 GLShareGroup(); |
23 | 23 |
24 // These two should only be called from the constructor and destructor of | 24 // These two should only be called from the constructor and destructor of |
25 // GLContext. | 25 // GLContext. |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 GLContext* shared_context_; | 59 GLContext* shared_context_; |
60 | 60 |
61 #if defined(OS_MACOSX) | 61 #if defined(OS_MACOSX) |
62 int renderer_id_; | 62 int renderer_id_; |
63 #endif | 63 #endif |
64 | 64 |
65 DISALLOW_COPY_AND_ASSIGN(GLShareGroup); | 65 DISALLOW_COPY_AND_ASSIGN(GLShareGroup); |
66 }; | 66 }; |
67 | 67 |
68 } // namespace gfx | 68 } // namespace gl |
69 | 69 |
70 #endif // UI_GL_GL_SHARE_GROUP_H_ | 70 #endif // UI_GL_GL_SHARE_GROUP_H_ |
OLD | NEW |