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_BINDINGS_H_ | 5 #ifndef UI_GL_GL_BINDINGS_H_ |
6 #define UI_GL_GL_BINDINGS_H_ | 6 #define UI_GL_GL_BINDINGS_H_ |
7 | 7 |
8 // Includes the platform independent and platform dependent GL headers. | 8 // Includes the platform independent and platform dependent GL headers. |
9 // Only include this in cc files. It pulls in system headers, including | 9 // Only include this in cc files. It pulls in system headers, including |
10 // the X11 headers on linux, which define all kinds of macros that are | 10 // the X11 headers on linux, which define all kinds of macros that are |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 #if defined(OS_WIN) | 213 #if defined(OS_WIN) |
214 #include "gl_bindings_autogen_egl.h" | 214 #include "gl_bindings_autogen_egl.h" |
215 #include "gl_bindings_autogen_wgl.h" | 215 #include "gl_bindings_autogen_wgl.h" |
216 #elif defined(USE_X11) | 216 #elif defined(USE_X11) |
217 #include "gl_bindings_autogen_egl.h" | 217 #include "gl_bindings_autogen_egl.h" |
218 #include "gl_bindings_autogen_glx.h" | 218 #include "gl_bindings_autogen_glx.h" |
219 #elif defined(USE_OZONE) | 219 #elif defined(USE_OZONE) |
220 #include "gl_bindings_autogen_egl.h" | 220 #include "gl_bindings_autogen_egl.h" |
221 #elif defined(OS_ANDROID) | 221 #elif defined(OS_ANDROID) |
222 #include "gl_bindings_autogen_egl.h" | 222 #include "gl_bindings_autogen_egl.h" |
| 223 #elif defined(CHROMECAST_BUILD) |
| 224 #include "gl_bindings_autogen_egl.h" |
223 #endif | 225 #endif |
224 | 226 |
225 namespace gfx { | 227 namespace gfx { |
226 | 228 |
227 struct GL_EXPORT DriverGL { | 229 struct GL_EXPORT DriverGL { |
228 void InitializeStaticBindings(); | 230 void InitializeStaticBindings(); |
229 void InitializeCustomDynamicBindings(GLContext* context); | 231 void InitializeCustomDynamicBindings(GLContext* context); |
230 void InitializeDebugBindings(); | 232 void InitializeDebugBindings(); |
231 void InitializeNullDrawBindings(); | 233 void InitializeNullDrawBindings(); |
232 // TODO(danakj): Remove this when all test suites are using null-draw. | 234 // TODO(danakj): Remove this when all test suites are using null-draw. |
(...skipping 28 matching lines...) Expand all Loading... |
261 void InitializeDynamicBindings(GLContext* context); | 263 void InitializeDynamicBindings(GLContext* context); |
262 void InitializeDebugBindings(); | 264 void InitializeDebugBindings(); |
263 void ClearBindings(); | 265 void ClearBindings(); |
264 | 266 |
265 ProcsWGL fn; | 267 ProcsWGL fn; |
266 ProcsWGL debug_fn; | 268 ProcsWGL debug_fn; |
267 ExtensionsWGL ext; | 269 ExtensionsWGL ext; |
268 }; | 270 }; |
269 #endif | 271 #endif |
270 | 272 |
271 #if defined(OS_WIN) || defined(USE_X11) || defined(OS_ANDROID) || defined(USE_OZ
ONE) | 273 #if defined(OS_WIN) || defined(USE_X11) || defined(OS_ANDROID) || defined(USE_OZ
ONE) || defined(CHROMECAST_BUILD) |
272 struct GL_EXPORT DriverEGL { | 274 struct GL_EXPORT DriverEGL { |
273 void InitializeStaticBindings(); | 275 void InitializeStaticBindings(); |
274 void InitializeDynamicBindings(GLContext* context); | 276 void InitializeDynamicBindings(GLContext* context); |
275 void InitializeDebugBindings(); | 277 void InitializeDebugBindings(); |
276 void ClearBindings(); | 278 void ClearBindings(); |
277 | 279 |
278 ProcsEGL fn; | 280 ProcsEGL fn; |
279 ProcsEGL debug_fn; | 281 ProcsEGL debug_fn; |
280 ExtensionsEGL ext; | 282 ExtensionsEGL ext; |
281 }; | 283 }; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 #elif defined(USE_OZONE) | 321 #elif defined(USE_OZONE) |
320 | 322 |
321 GL_EXPORT extern EGLApi* g_current_egl_context; | 323 GL_EXPORT extern EGLApi* g_current_egl_context; |
322 GL_EXPORT extern DriverEGL g_driver_egl; | 324 GL_EXPORT extern DriverEGL g_driver_egl; |
323 | 325 |
324 #elif defined(OS_ANDROID) | 326 #elif defined(OS_ANDROID) |
325 | 327 |
326 GL_EXPORT extern EGLApi* g_current_egl_context; | 328 GL_EXPORT extern EGLApi* g_current_egl_context; |
327 GL_EXPORT extern DriverEGL g_driver_egl; | 329 GL_EXPORT extern DriverEGL g_driver_egl; |
328 | 330 |
| 331 #elif defined(CHROMECAST_BUILD) |
| 332 |
| 333 GL_EXPORT extern EGLApi* g_current_egl_context; |
| 334 GL_EXPORT extern DriverEGL g_driver_egl; |
| 335 |
329 #endif | 336 #endif |
330 | 337 |
331 } // namespace gfx | 338 } // namespace gfx |
332 | 339 |
333 #endif // UI_GL_GL_BINDINGS_H_ | 340 #endif // UI_GL_GL_BINDINGS_H_ |
OLD | NEW |