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

Unified Diff: ui/gl/gl_surface_glx.h

Issue 1168993002: Update the native_viewport interface to allow specification of the surface configuration, currently… (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Final cleanups Created 5 years, 6 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 c1fca6006a1726b5971bd0494d284220ad61e22d..d8fa9a4382baa3d78bd2e1065d192b239905b5a8 100644
--- a/ui/gl/gl_surface_glx.h
+++ b/ui/gl/gl_surface_glx.h
@@ -21,7 +21,8 @@ namespace gfx {
// Base class for GLX surfaces.
class GL_EXPORT GLSurfaceGLX : public GLSurface {
public:
- GLSurfaceGLX();
+ explicit GLSurfaceGLX(
+ const gfx::SurfaceConfiguration& requested_configuration);
static bool InitializeOneOff();
@@ -52,7 +53,9 @@ class GL_EXPORT GLSurfaceGLX : public GLSurface {
class GL_EXPORT NativeViewGLSurfaceGLX : public GLSurfaceGLX,
public ui::PlatformEventDispatcher {
public:
- explicit NativeViewGLSurfaceGLX(gfx::AcceleratedWidget window);
+ NativeViewGLSurfaceGLX(
+ gfx::AcceleratedWidget window,
+ const gfx::SurfaceConfiguration& requested_configuration);
// Implement GLSurfaceGLX.
bool Initialize() override;
@@ -95,7 +98,9 @@ class GL_EXPORT NativeViewGLSurfaceGLX : public GLSurfaceGLX,
// A surface used to render to an offscreen pbuffer.
class GL_EXPORT PbufferGLSurfaceGLX : public GLSurfaceGLX {
public:
- explicit PbufferGLSurfaceGLX(const gfx::Size& size);
+ PbufferGLSurfaceGLX(
+ const gfx::Size& size,
+ const gfx::SurfaceConfiguration& requested_configuration);
// Implement GLSurfaceGLX.
bool Initialize() 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