Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Side by Side Diff: ui/gl/gl_share_group_glx.h

Issue 2347383002: X11: Use better visuals for OpenGL (Closed)
Patch Set: Fix various tests Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698