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

Unified Diff: ui/gl/gl_surface_glx.h

Issue 2347383002: X11: Use better visuals for OpenGL (Closed)
Patch Set: Fix various tests 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
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..7f6522ab90c329f8055dd57effd705ca1586afd6 100644
--- a/ui/gl/gl_surface_glx.h
+++ b/ui/gl/gl_surface_glx.h
@@ -72,6 +72,7 @@ class GL_EXPORT NativeViewGLSurfaceGLX : public GLSurfaceGLX {
void* GetConfig() 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 +104,7 @@ class GL_EXPORT NativeViewGLSurfaceGLX : public GLSurfaceGLX {
GLXFBConfig config_;
gfx::Size size_;
+ VisualID visual_id_;
std::unique_ptr<gfx::VSyncProvider> vsync_provider_;

Powered by Google App Engine
This is Rietveld 408576698