OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_GL_GL_SURFACE_GLX_H_ | 5 #ifndef UI_GL_GL_SURFACE_GLX_H_ |
6 #define UI_GL_GL_SURFACE_GLX_H_ | 6 #define UI_GL_GL_SURFACE_GLX_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 explicit NativeViewGLSurfaceGLX(gfx::AcceleratedWidget window); | 53 explicit NativeViewGLSurfaceGLX(gfx::AcceleratedWidget window); |
54 | 54 |
55 // Implement GLSurfaceGLX. | 55 // Implement GLSurfaceGLX. |
56 virtual bool Initialize() OVERRIDE; | 56 virtual bool Initialize() OVERRIDE; |
57 virtual void Destroy() OVERRIDE; | 57 virtual void Destroy() OVERRIDE; |
58 virtual bool Resize(const gfx::Size& size) OVERRIDE; | 58 virtual bool Resize(const gfx::Size& size) OVERRIDE; |
59 virtual bool IsOffscreen() OVERRIDE; | 59 virtual bool IsOffscreen() OVERRIDE; |
60 virtual bool SwapBuffers() OVERRIDE; | 60 virtual bool SwapBuffers() OVERRIDE; |
61 virtual gfx::Size GetSize() OVERRIDE; | 61 virtual gfx::Size GetSize() OVERRIDE; |
62 virtual void* GetHandle() OVERRIDE; | 62 virtual void* GetHandle() OVERRIDE; |
63 virtual std::string GetExtensions() OVERRIDE; | 63 virtual bool SupportsPostSubBuffer() OVERRIDE; |
64 virtual void* GetConfig() OVERRIDE; | 64 virtual void* GetConfig() OVERRIDE; |
65 virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE; | 65 virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE; |
66 virtual VSyncProvider* GetVSyncProvider() OVERRIDE; | 66 virtual VSyncProvider* GetVSyncProvider() OVERRIDE; |
67 | 67 |
68 protected: | 68 protected: |
69 NativeViewGLSurfaceGLX(); | 69 NativeViewGLSurfaceGLX(); |
70 virtual ~NativeViewGLSurfaceGLX(); | 70 virtual ~NativeViewGLSurfaceGLX(); |
71 | 71 |
72 private: | 72 private: |
73 // The handle for the drawable to make current or swap. | 73 // The handle for the drawable to make current or swap. |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 gfx::Size size_; | 133 gfx::Size size_; |
134 void* config_; | 134 void* config_; |
135 XID pbuffer_; | 135 XID pbuffer_; |
136 | 136 |
137 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceGLX); | 137 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceGLX); |
138 }; | 138 }; |
139 | 139 |
140 } // namespace gfx | 140 } // namespace gfx |
141 | 141 |
142 #endif // UI_GL_GL_SURFACE_GLX_H_ | 142 #endif // UI_GL_GL_SURFACE_GLX_H_ |
OLD | NEW |