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

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

Issue 7980006: Implement OSMesa image transport for TOUCH_UI builds (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Re-uploading to get OWNERS check. Created 9 years, 3 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_context_osmesa.cc ('k') | no next file » | 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 NativeViewGLSurfaceGLX(); 57 NativeViewGLSurfaceGLX();
58 58
59 gfx::PluginWindowHandle window_; 59 gfx::PluginWindowHandle window_;
60 60
61 private: 61 private:
62 void* config_; 62 void* config_;
63 DISALLOW_COPY_AND_ASSIGN(NativeViewGLSurfaceGLX); 63 DISALLOW_COPY_AND_ASSIGN(NativeViewGLSurfaceGLX);
64 }; 64 };
65 65
66 // A surface used to render to an offscreen pbuffer. 66 // A surface used to render to an offscreen pbuffer.
67 class PbufferGLSurfaceGLX : public GLSurfaceGLX { 67 class GL_EXPORT PbufferGLSurfaceGLX : public GLSurfaceGLX {
68 public: 68 public:
69 explicit PbufferGLSurfaceGLX(const gfx::Size& size); 69 explicit PbufferGLSurfaceGLX(const gfx::Size& size);
70 virtual ~PbufferGLSurfaceGLX(); 70 virtual ~PbufferGLSurfaceGLX();
71 71
72 // Implement GLSurfaceGLX. 72 // Implement GLSurfaceGLX.
73 virtual bool Initialize(); 73 virtual bool Initialize();
74 virtual void Destroy(); 74 virtual void Destroy();
75 virtual bool IsOffscreen(); 75 virtual bool IsOffscreen();
76 virtual bool SwapBuffers(); 76 virtual bool SwapBuffers();
77 virtual gfx::Size GetSize(); 77 virtual gfx::Size GetSize();
78 virtual void* GetHandle(); 78 virtual void* GetHandle();
79 virtual void* GetConfig(); 79 virtual void* GetConfig();
80 80
81 private: 81 private:
82 gfx::Size size_; 82 gfx::Size size_;
83 void* config_; 83 void* config_;
84 XID pbuffer_; 84 XID pbuffer_;
85 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceGLX); 85 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceGLX);
86 }; 86 };
87 87
88 } // namespace gfx 88 } // namespace gfx
89 89
90 #endif // UI_GFX_GL_GL_SURFACE_GLX_H_ 90 #endif // UI_GFX_GL_GL_SURFACE_GLX_H_
OLDNEW
« no previous file with comments | « ui/gfx/gl/gl_context_osmesa.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698