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

Unified Diff: ui/gl/gl_surface.h

Issue 2347383002: X11: Use better visuals for OpenGL (Closed)
Patch Set: auto* Created 4 years, 3 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
« no previous file with comments | « ui/gl/gl_share_group.cc ('k') | ui/gl/gl_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface.h
diff --git a/ui/gl/gl_surface.h b/ui/gl/gl_surface.h
index 35c1ded987a18d2cb839afd0292b4927ebd272f2..3e654cb8cf548789e696844689a5271ccc67c08d 100644
--- a/ui/gl/gl_surface.h
+++ b/ui/gl/gl_surface.h
@@ -160,6 +160,10 @@ class GL_EXPORT GLSurface : public base::RefCounted<GLSurface> {
// Get the platfrom specific configuration for this surface, if available.
virtual void* GetConfig();
+ // Get the key corresponding to the set of GLSurfaces that can be made current
+ // with this GLSurface.
+ virtual unsigned long GetCompatibilityKey();
+
// Get the GL pixel format of the surface, if available.
virtual GLSurface::Format GetFormat();
@@ -267,6 +271,7 @@ class GL_EXPORT GLSurfaceAdapter : public GLSurface {
void* GetShareHandle() override;
void* GetDisplay() override;
void* GetConfig() override;
+ unsigned long GetCompatibilityKey() override;
GLSurface::Format GetFormat() override;
gfx::VSyncProvider* GetVSyncProvider() override;
bool ScheduleOverlayPlane(int z_order,
« no previous file with comments | « ui/gl/gl_share_group.cc ('k') | ui/gl/gl_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698