OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |