OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2009, Google Inc. | 2 * Copyright 2009, Google Inc. |
3 * All rights reserved. | 3 * All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 void* mac_window_selected_tab_; | 268 void* mac_window_selected_tab_; |
269 bool mac_surface_hidden_; | 269 bool mac_surface_hidden_; |
270 // end of Safari tab detection vars | 270 // end of Safari tab detection vars |
271 GLint last_buffer_rect_[4]; | 271 GLint last_buffer_rect_[4]; |
272 Point last_plugin_loc_; | 272 Point last_plugin_loc_; |
273 // can be a CGrafPtr, a CGContextRef or NULL depending on drawing_model | 273 // can be a CGrafPtr, a CGContextRef or NULL depending on drawing_model |
274 void* mac_2d_context_; | 274 void* mac_2d_context_; |
275 // either can be NULL depending on drawing_model | 275 // either can be NULL depending on drawing_model |
276 AGLContext mac_agl_context_; | 276 AGLContext mac_agl_context_; |
277 CGLContextObj mac_cgl_context_; | 277 CGLContextObj mac_cgl_context_; |
| 278 void *gl_layer_; |
278 // If in Chrome, we actually do all of our rendering offscreen, and | 279 // If in Chrome, we actually do all of our rendering offscreen, and |
279 // bootstrap off a 1x1 pbuffer | 280 // bootstrap off a 1x1 pbuffer |
280 CGLPBufferObj mac_cgl_pbuffer_; | 281 CGLPBufferObj mac_cgl_pbuffer_; |
281 | 282 |
282 // Fullscreen related stuff. | 283 // Fullscreen related stuff. |
283 | 284 |
284 #ifdef O3D_PLUGIN_ENABLE_FULLSCREEN_MSG | 285 #ifdef O3D_PLUGIN_ENABLE_FULLSCREEN_MSG |
285 // FullscreenIdle gets repeatedly called while we are in fullscreen mode. | 286 // FullscreenIdle gets repeatedly called while we are in fullscreen mode. |
286 // Currently its only task is to hide the fullscreen message at the right | 287 // Currently its only task is to hide the fullscreen message at the right |
287 // time. | 288 // time. |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 | 535 |
535 bool AllocateOffscreenRenderSurfaces(int width, int height); | 536 bool AllocateOffscreenRenderSurfaces(int width, int height); |
536 void DeallocateOffscreenRenderSurfaces(); | 537 void DeallocateOffscreenRenderSurfaces(); |
537 }; | 538 }; |
538 | 539 |
539 } // namespace o3d | 540 } // namespace o3d |
540 } // namespace glue | 541 } // namespace glue |
541 | 542 |
542 | 543 |
543 #endif // O3D_PLUGIN_CROSS_O3D_GLUE_H_ | 544 #endif // O3D_PLUGIN_CROSS_O3D_GLUE_H_ |
OLD | NEW |