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

Unified Diff: ui/gl/gl_surface_osmesa.h

Issue 17932004: Support ozone=1 compositor_unittests with OSMesa (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix on linux Created 7 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
Index: ui/gl/gl_surface_osmesa.h
diff --git a/ui/gl/gl_surface_osmesa.h b/ui/gl/gl_surface_osmesa.h
index a823231fa0c44eccbe29e0ae3d114dd5e4cd64ab..3886161f41af3522c81cd3dd1b36a623b33492b9 100644
--- a/ui/gl/gl_surface_osmesa.h
+++ b/ui/gl/gl_surface_osmesa.h
@@ -39,6 +39,24 @@ class GL_EXPORT GLSurfaceOSMesa : public GLSurface {
DISALLOW_COPY_AND_ASSIGN(GLSurfaceOSMesa);
};
+// A thin subclass of |GLSurfaceOSMesa| that can be used in place
+// of a native hardware-provided surface when a native surface
+// provider is not available.
+class GLSurfaceOSMesaHeadless : public GLSurfaceOSMesa {
+ public:
+ explicit GLSurfaceOSMesaHeadless(gfx::AcceleratedWidget window);
+
+ virtual bool IsOffscreen() OVERRIDE;
+ virtual bool SwapBuffers() OVERRIDE;
+
+ protected:
+ virtual ~GLSurfaceOSMesaHeadless();
+
+ private:
+
+ DISALLOW_COPY_AND_ASSIGN(GLSurfaceOSMesaHeadless);
+};
+
} // namespace gfx
#endif // UI_GL_GL_SURFACE_OSMESA_H_
« ui/gl/gl.gyp ('K') | « ui/gl/gl_surface_egl.cc ('k') | ui/gl/gl_surface_osmesa.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698