| 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_
|
|
|