OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef UI_GL_GL_SHARE_GROUP_GLX_H_ | |
6 #define UI_GL_GL_SHARE_GROUP_GLX_H_ | |
7 | |
8 #include <map> | |
9 | |
10 #include "base/memory/weak_ptr.h" | |
11 #include "ui/gl/gl_share_group.h" | |
12 | |
13 namespace gl { | |
14 | |
15 // A group of GL contexts that share an ID namespace. | |
16 class GL_EXPORT GLShareGroupGLX : public GLShareGroup { | |
piman
2016/09/22 21:24:55
Maybe we can avoid special-casing GLX here, by mov
| |
17 public: | |
18 GLShareGroupGLX(); | |
19 | |
20 void SetSharedContext(GLSurface* compatible, GLContext* context) override; | |
21 GLContext* GetSharedContext(GLSurface* compatible) override; | |
22 | |
23 private: | |
24 ~GLShareGroupGLX() override; | |
25 | |
26 std::map<unsigned long, base::WeakPtr<GLContext>> shared_contexts_; | |
27 | |
28 DISALLOW_COPY_AND_ASSIGN(GLShareGroupGLX); | |
29 }; | |
30 | |
31 } // namespace gl | |
32 | |
33 #endif // UI_GL_GL_SHARE_GROUP_GLX_H_ | |
OLD | NEW |