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 extern "C" { | 5 extern "C" { |
6 #include <X11/Xlib.h> | 6 #include <X11/Xlib.h> |
7 } | 7 } |
8 | 8 |
9 #include "ui/gfx/gl/gl_surface_glx.h" | 9 #include "ui/gfx/gl/gl_surface_glx.h" |
10 | 10 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 97 |
98 bool GLSurfaceGLX::IsCreateContextRobustnessSupported() { | 98 bool GLSurfaceGLX::IsCreateContextRobustnessSupported() { |
99 return g_glx_create_context_robustness_supported; | 99 return g_glx_create_context_robustness_supported; |
100 } | 100 } |
101 | 101 |
102 NativeViewGLSurfaceGLX::NativeViewGLSurfaceGLX(gfx::PluginWindowHandle window) | 102 NativeViewGLSurfaceGLX::NativeViewGLSurfaceGLX(gfx::PluginWindowHandle window) |
103 : window_(window), | 103 : window_(window), |
104 config_(NULL) { | 104 config_(NULL) { |
105 } | 105 } |
106 | 106 |
| 107 NativeViewGLSurfaceGLX::NativeViewGLSurfaceGLX() |
| 108 : window_(0), |
| 109 config_(NULL) { |
| 110 } |
| 111 |
107 NativeViewGLSurfaceGLX::~NativeViewGLSurfaceGLX() { | 112 NativeViewGLSurfaceGLX::~NativeViewGLSurfaceGLX() { |
108 Destroy(); | 113 Destroy(); |
109 } | 114 } |
110 | 115 |
111 bool NativeViewGLSurfaceGLX::Initialize() { | 116 bool NativeViewGLSurfaceGLX::Initialize() { |
112 return true; | 117 return true; |
113 } | 118 } |
114 | 119 |
115 void NativeViewGLSurfaceGLX::Destroy() { | 120 void NativeViewGLSurfaceGLX::Destroy() { |
116 } | 121 } |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 | 280 |
276 void* PbufferGLSurfaceGLX::GetHandle() { | 281 void* PbufferGLSurfaceGLX::GetHandle() { |
277 return reinterpret_cast<void*>(pbuffer_); | 282 return reinterpret_cast<void*>(pbuffer_); |
278 } | 283 } |
279 | 284 |
280 void* PbufferGLSurfaceGLX::GetConfig() { | 285 void* PbufferGLSurfaceGLX::GetConfig() { |
281 return config_; | 286 return config_; |
282 } | 287 } |
283 | 288 |
284 } // namespace gfx | 289 } // namespace gfx |
OLD | NEW |