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

Unified Diff: ui/gl/gl_surface_glx.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_surface_egl.cc ('k') | ui/gl/gl_surface_glx.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_glx.h
diff --git a/ui/gl/gl_surface_glx.h b/ui/gl/gl_surface_glx.h
index 29e45e0b03dc7176a2bcfa0355366849275148ff..6d9842281e74eed432bbe95bd31b5e2e5ffdc39e 100644
--- a/ui/gl/gl_surface_glx.h
+++ b/ui/gl/gl_surface_glx.h
@@ -46,6 +46,8 @@ class GL_EXPORT GLSurfaceGLX : public GLSurface {
// a GLX drawable.
void* GetConfig() override = 0;
+ unsigned long GetCompatibilityKey() override = 0;
+
protected:
~GLSurfaceGLX() override;
@@ -70,8 +72,10 @@ class GL_EXPORT NativeViewGLSurfaceGLX : public GLSurfaceGLX {
void* GetHandle() override;
bool SupportsPostSubBuffer() override;
void* GetConfig() override;
+ unsigned long GetCompatibilityKey() override;
gfx::SwapResult PostSubBuffer(int x, int y, int width, int height) override;
gfx::VSyncProvider* GetVSyncProvider() override;
+ VisualID GetVisualID() const { return visual_id_; }
protected:
~NativeViewGLSurfaceGLX() override;
@@ -103,6 +107,7 @@ class GL_EXPORT NativeViewGLSurfaceGLX : public GLSurfaceGLX {
GLXFBConfig config_;
gfx::Size size_;
+ VisualID visual_id_;
std::unique_ptr<gfx::VSyncProvider> vsync_provider_;
@@ -122,6 +127,7 @@ class GL_EXPORT UnmappedNativeViewGLSurfaceGLX : public GLSurfaceGLX {
gfx::Size GetSize() override;
void* GetHandle() override;
void* GetConfig() override;
+ unsigned long GetCompatibilityKey() override;
protected:
~UnmappedNativeViewGLSurfaceGLX() override;
« no previous file with comments | « ui/gl/gl_surface_egl.cc ('k') | ui/gl/gl_surface_glx.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698