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

Unified Diff: ui/gl/gl_surface_osmesa.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_glx.cc ('k') | ui/gl/gl_surface_osmesa.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_osmesa.h
diff --git a/ui/gl/gl_surface_osmesa.h b/ui/gl/gl_surface_osmesa.h
index cd65e650293a1a50b632d450609e588117f9df97..7484063f6629f5e50100a1af96c94761cb3f1137 100644
--- a/ui/gl/gl_surface_osmesa.h
+++ b/ui/gl/gl_surface_osmesa.h
@@ -18,7 +18,9 @@ enum OSMesaSurfaceFormat { OSMesaSurfaceFormatBGRA, OSMesaSurfaceFormatRGBA };
// surfaces can be resized and resizing preserves the contents.
class GL_EXPORT GLSurfaceOSMesa : public GLSurface {
public:
- GLSurfaceOSMesa(OSMesaSurfaceFormat format, const gfx::Size& size);
+ GLSurfaceOSMesa(OSMesaSurfaceFormat format,
+ const gfx::Size& size,
+ const gfx::SurfaceConfiguration requested_configuration);
// Implement GLSurface.
bool Initialize() override;
@@ -29,6 +31,7 @@ class GL_EXPORT GLSurfaceOSMesa : public GLSurface {
gfx::Size GetSize() override;
void* GetHandle() override;
unsigned GetFormat() override;
+ void* GetConfig() override;
protected:
~GLSurfaceOSMesa() override;
@@ -46,10 +49,12 @@ class GL_EXPORT GLSurfaceOSMesa : public GLSurface {
// provider is not available.
class GLSurfaceOSMesaHeadless : public GLSurfaceOSMesa {
public:
- explicit GLSurfaceOSMesaHeadless();
+ explicit GLSurfaceOSMesaHeadless(
+ const gfx::SurfaceConfiguration requested_configuration);
bool IsOffscreen() override;
bool SwapBuffers() override;
+ void* GetConfig() override;
protected:
~GLSurfaceOSMesaHeadless() override;
« no previous file with comments | « ui/gl/gl_surface_glx.cc ('k') | ui/gl/gl_surface_osmesa.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698