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

Unified Diff: ui/gl/gl_surface_glx.h

Issue 10543125: gpu: Add support for GLX_EXT_texture_from_pixmap extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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_glx.h
diff --git a/ui/gl/gl_surface_glx.h b/ui/gl/gl_surface_glx.h
index f4416e81af6b8ed1622e99ef2cbff9a675c67d99..66144dcad3e17b78e1aab5892abea8995cdc9cb9 100644
--- a/ui/gl/gl_surface_glx.h
+++ b/ui/gl/gl_surface_glx.h
@@ -97,6 +97,33 @@ class GL_EXPORT PbufferGLSurfaceGLX : public GLSurfaceGLX {
DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceGLX);
};
+// A surface used to render to an offscreen pixmap.
+class GL_EXPORT PixmapGLSurfaceGLX : public GLSurfaceGLX {
piman 2012/06/12 23:15:38 Do you really need to make this structure a GLSurf
+ public:
+ explicit PixmapGLSurfaceGLX(XID pixmap);
+
+ // Implement GLSurfaceGLX.
+ virtual bool Initialize() OVERRIDE;
+ virtual void Destroy() OVERRIDE;
+ virtual bool IsOffscreen() OVERRIDE;
+ virtual bool SwapBuffers() OVERRIDE;
+ virtual gfx::Size GetSize() OVERRIDE;
+ virtual void* GetHandle() OVERRIDE;
+ virtual void* GetConfig() OVERRIDE;
+ virtual void* GetShareHandle() OVERRIDE;
+
+ protected:
+ virtual ~PixmapGLSurfaceGLX();
+
+ private:
+ void* config_;
+ XID pixmap_;
+ XID glx_pixmap_;
+ gfx::Size size_;
+
+ DISALLOW_COPY_AND_ASSIGN(PixmapGLSurfaceGLX);
+};
+
} // namespace gfx
#endif // UI_GL_GL_SURFACE_GLX_H_

Powered by Google App Engine
This is Rietveld 408576698