summaryrefslogtreecommitdiffstats
path: root/ui/gl/gl_image_glx.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gl/gl_image_glx.h')
-rw-r--r--ui/gl/gl_image_glx.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/ui/gl/gl_image_glx.h b/ui/gl/gl_image_glx.h
index d945202..f8027e1 100644
--- a/ui/gl/gl_image_glx.h
+++ b/ui/gl/gl_image_glx.h
@@ -14,9 +14,9 @@ namespace gfx {
class GL_EXPORT GLImageGLX : public GLImage {
public:
- explicit GLImageGLX(gfx::PluginWindowHandle window);
+ GLImageGLX(const gfx::Size& size, unsigned internalformat);
- virtual bool Initialize();
+ bool Initialize(XID pixmap);
// Overridden from GLImage:
virtual void Destroy() OVERRIDE;
@@ -32,11 +32,9 @@ class GL_EXPORT GLImageGLX : public GLImage {
virtual ~GLImageGLX();
private:
- XDisplay* display_;
- gfx::PluginWindowHandle window_;
- XID pixmap_;
XID glx_pixmap_;
- gfx::Size size_;
+ const gfx::Size size_;
+ unsigned internalformat_;
DISALLOW_COPY_AND_ASSIGN(GLImageGLX);
};