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

Unified Diff: ui/gl/gl_share_group.h

Issue 12383042: Switch all contexts in a share group to be on the same screen as the window they present to. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
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);
};
« ui/gl/gl_context_cgl.cc ('K') | « ui/gl/gl_context_cgl.cc ('k') | ui/gl/gl_share_group.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698