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

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

Issue 8512005: Plumb through EGL_NV_post_sub_buffer and GLX_MESA_copy_sub_buffer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "" Created 9 years, 1 month 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_egl.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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 virtual ~NativeViewGLSurfaceGLX(); 46 virtual ~NativeViewGLSurfaceGLX();
47 47
48 // Implement GLSurfaceGLX. 48 // Implement GLSurfaceGLX.
49 virtual bool Initialize(); 49 virtual bool Initialize();
50 virtual void Destroy(); 50 virtual void Destroy();
51 virtual bool IsOffscreen(); 51 virtual bool IsOffscreen();
52 virtual bool SwapBuffers(); 52 virtual bool SwapBuffers();
53 virtual gfx::Size GetSize(); 53 virtual gfx::Size GetSize();
54 virtual void* GetHandle(); 54 virtual void* GetHandle();
55 virtual void* GetConfig(); 55 virtual void* GetConfig();
56 virtual bool SupportsPostSubBuffer();
57 virtual bool PostSubBuffer(int x, int y, int width, int height);
56 58
57 protected: 59 protected:
58 NativeViewGLSurfaceGLX(); 60 NativeViewGLSurfaceGLX();
59 61
60 gfx::PluginWindowHandle window_; 62 gfx::PluginWindowHandle window_;
61 63
62 private: 64 private:
63 void* config_; 65 void* config_;
64 DISALLOW_COPY_AND_ASSIGN(NativeViewGLSurfaceGLX); 66 DISALLOW_COPY_AND_ASSIGN(NativeViewGLSurfaceGLX);
65 }; 67 };
(...skipping 16 matching lines...) Expand all
82 private: 84 private:
83 gfx::Size size_; 85 gfx::Size size_;
84 void* config_; 86 void* config_;
85 XID pbuffer_; 87 XID pbuffer_;
86 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceGLX); 88 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceGLX);
87 }; 89 };
88 90
89 } // namespace gfx 91 } // namespace gfx
90 92
91 #endif // UI_GFX_GL_GL_SURFACE_GLX_H_ 93 #endif // UI_GFX_GL_GL_SURFACE_GLX_H_
OLDNEW
« no previous file with comments | « ui/gfx/gl/gl_surface_egl.cc ('k') | ui/gfx/gl/gl_surface_glx.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698