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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 protected: | 70 protected: |
71 virtual ~NativeViewGLSurfaceGLX(); | 71 virtual ~NativeViewGLSurfaceGLX(); |
72 | 72 |
73 private: | 73 private: |
74 // The handle for the drawable to make current or swap. | 74 // The handle for the drawable to make current or swap. |
75 gfx::AcceleratedWidget GetDrawableHandle() const; | 75 gfx::AcceleratedWidget GetDrawableHandle() const; |
76 | 76 |
77 // PlatformEventDispatcher implementation | 77 // PlatformEventDispatcher implementation |
78 virtual bool CanDispatchEvent(const ui::PlatformEvent& event) override; | 78 virtual bool CanDispatchEvent(const ui::PlatformEvent& event) override; |
79 virtual uint32_t DispatchEvent(const ui::PlatformEvent& event) override; | 79 virtual ui::PostDispatchAction DispatchEvent( |
| 80 const ui::PlatformEvent& event) override; |
80 | 81 |
81 // Window passed in at creation. Always valid. | 82 // Window passed in at creation. Always valid. |
82 gfx::AcceleratedWidget parent_window_; | 83 gfx::AcceleratedWidget parent_window_; |
83 | 84 |
84 // Child window, used to control resizes so that they're in-order with GL. | 85 // Child window, used to control resizes so that they're in-order with GL. |
85 gfx::AcceleratedWidget window_; | 86 gfx::AcceleratedWidget window_; |
86 | 87 |
87 void* config_; | 88 void* config_; |
88 gfx::Size size_; | 89 gfx::Size size_; |
89 | 90 |
(...skipping 23 matching lines...) Expand all Loading... |
113 gfx::Size size_; | 114 gfx::Size size_; |
114 void* config_; | 115 void* config_; |
115 XID pbuffer_; | 116 XID pbuffer_; |
116 | 117 |
117 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceGLX); | 118 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceGLX); |
118 }; | 119 }; |
119 | 120 |
120 } // namespace gfx | 121 } // namespace gfx |
121 | 122 |
122 #endif // UI_GL_GL_SURFACE_GLX_H_ | 123 #endif // UI_GL_GL_SURFACE_GLX_H_ |
OLD | NEW |