| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 std::string GetExtensions() 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 #if defined(TOOLKIT_GTK) |
| 69 static void AcceleratedCompositingStateChange( |
| 70 int32 surface_id, bool compositing_active); |
| 71 #endif |
| 72 |
| 68 protected: | 73 protected: |
| 69 NativeViewGLSurfaceGLX(); | 74 NativeViewGLSurfaceGLX(); |
| 70 virtual ~NativeViewGLSurfaceGLX(); | 75 virtual ~NativeViewGLSurfaceGLX(); |
| 71 | 76 |
| 72 private: | 77 private: |
| 73 // The handle for the drawable to make current or swap. | 78 // The handle for the drawable to make current or swap. |
| 74 gfx::AcceleratedWidget GetDrawableHandle() const; | 79 gfx::AcceleratedWidget GetDrawableHandle() const; |
| 75 | 80 |
| 76 // Window passed in at creation. Always valid. | 81 // Window passed in at creation. Always valid. |
| 77 gfx::AcceleratedWidget parent_window_; | 82 gfx::AcceleratedWidget parent_window_; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 gfx::Size size_; | 138 gfx::Size size_; |
| 134 void* config_; | 139 void* config_; |
| 135 XID pbuffer_; | 140 XID pbuffer_; |
| 136 | 141 |
| 137 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceGLX); | 142 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceGLX); |
| 138 }; | 143 }; |
| 139 | 144 |
| 140 } // namespace gfx | 145 } // namespace gfx |
| 141 | 146 |
| 142 #endif // UI_GL_GL_SURFACE_GLX_H_ | 147 #endif // UI_GL_GL_SURFACE_GLX_H_ |
| OLD | NEW |