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

Side by Side Diff: ui/gfx/gl/gl_surface_glx.h

Issue 7395020: Create new GLSurface for cross process image transport. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "" Created 9 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/gfx/gl/gl_surface.cc ('k') | ui/gfx/gl/gl_surface_glx.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_GFX_GL_GL_SURFACE_GLX_H_ 5 #ifndef UI_GFX_GL_GL_SURFACE_GLX_H_
6 #define UI_GFX_GL_GL_SURFACE_GLX_H_ 6 #define UI_GFX_GL_GL_SURFACE_GLX_H_
7 7
8 #include "ui/gfx/gl/gl_surface.h" 8 #include "ui/gfx/gl/gl_surface.h"
9 9
10 #include "ui/base/x/x11_util.h" 10 #include "ui/base/x/x11_util.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 // Implement GLSurfaceGLX. 46 // Implement GLSurfaceGLX.
47 virtual bool Initialize(); 47 virtual bool Initialize();
48 virtual void Destroy(); 48 virtual void Destroy();
49 virtual bool IsOffscreen(); 49 virtual bool IsOffscreen();
50 virtual bool SwapBuffers(); 50 virtual bool SwapBuffers();
51 virtual gfx::Size GetSize(); 51 virtual gfx::Size GetSize();
52 virtual void* GetHandle(); 52 virtual void* GetHandle();
53 virtual void* GetConfig(); 53 virtual void* GetConfig();
54 54
55 protected:
56 NativeViewGLSurfaceGLX();
57
58 gfx::PluginWindowHandle window_;
59
55 private: 60 private:
56 gfx::PluginWindowHandle window_;
57 void* config_; 61 void* config_;
58 DISALLOW_COPY_AND_ASSIGN(NativeViewGLSurfaceGLX); 62 DISALLOW_COPY_AND_ASSIGN(NativeViewGLSurfaceGLX);
59 }; 63 };
60 64
61 // A surface used to render to an offscreen pbuffer. 65 // A surface used to render to an offscreen pbuffer.
62 class PbufferGLSurfaceGLX : public GLSurfaceGLX { 66 class PbufferGLSurfaceGLX : public GLSurfaceGLX {
63 public: 67 public:
64 explicit PbufferGLSurfaceGLX(const gfx::Size& size); 68 explicit PbufferGLSurfaceGLX(const gfx::Size& size);
65 virtual ~PbufferGLSurfaceGLX(); 69 virtual ~PbufferGLSurfaceGLX();
66 70
67 // Implement GLSurfaceGLX. 71 // Implement GLSurfaceGLX.
68 virtual bool Initialize(); 72 virtual bool Initialize();
69 virtual void Destroy(); 73 virtual void Destroy();
70 virtual bool IsOffscreen(); 74 virtual bool IsOffscreen();
71 virtual bool SwapBuffers(); 75 virtual bool SwapBuffers();
72 virtual gfx::Size GetSize(); 76 virtual gfx::Size GetSize();
73 virtual void* GetHandle(); 77 virtual void* GetHandle();
74 virtual void* GetConfig(); 78 virtual void* GetConfig();
75 79
76 private: 80 private:
77 gfx::Size size_; 81 gfx::Size size_;
78 void* config_; 82 void* config_;
79 XID pbuffer_; 83 XID pbuffer_;
80 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceGLX); 84 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceGLX);
81 }; 85 };
82 86
83 } // namespace gfx 87 } // namespace gfx
84 88
85 #endif // UI_GFX_GL_GL_SURFACE_GLX_H_ 89 #endif // UI_GFX_GL_GL_SURFACE_GLX_H_
OLDNEW
« no previous file with comments | « ui/gfx/gl/gl_surface.cc ('k') | ui/gfx/gl/gl_surface_glx.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698