| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 #include "command_buffer/common/cross/gapi_interface.h" | 43 #include "command_buffer/common/cross/gapi_interface.h" |
| 44 #include "command_buffer/service/cross/gl/gl_utils.h" | 44 #include "command_buffer/service/cross/gl/gl_utils.h" |
| 45 #include "command_buffer/service/cross/gl/effect_gl.h" | 45 #include "command_buffer/service/cross/gl/effect_gl.h" |
| 46 #include "command_buffer/service/cross/gl/geometry_gl.h" | 46 #include "command_buffer/service/cross/gl/geometry_gl.h" |
| 47 #include "command_buffer/service/cross/gl/render_surface_gl.h" | 47 #include "command_buffer/service/cross/gl/render_surface_gl.h" |
| 48 #include "command_buffer/service/cross/gl/sampler_gl.h" | 48 #include "command_buffer/service/cross/gl/sampler_gl.h" |
| 49 #include "command_buffer/service/cross/gl/texture_gl.h" | 49 #include "command_buffer/service/cross/gl/texture_gl.h" |
| 50 | 50 |
| 51 namespace o3d { | 51 namespace o3d { |
| 52 namespace command_buffer { | 52 namespace command_buffer { |
| 53 namespace o3d { |
| 53 #if defined(OS_LINUX) | 54 #if defined(OS_LINUX) |
| 54 class XWindowWrapper; | 55 class XWindowWrapper; |
| 55 #endif // defined(OS_LINUX) | 56 #endif // defined(OS_LINUX) |
| 56 | 57 |
| 57 // This class implements the GAPI interface for GL. | 58 // This class implements the GAPI interface for GL. |
| 58 class GAPIGL : public GAPIInterface { | 59 class GAPIGL : public GAPIInterface { |
| 59 public: | 60 public: |
| 60 GAPIGL(); | 61 GAPIGL(); |
| 61 virtual ~GAPIGL(); | 62 virtual ~GAPIGL(); |
| 62 | 63 |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 ResourceMap<IndexBufferGL> index_buffers_; | 453 ResourceMap<IndexBufferGL> index_buffers_; |
| 453 ResourceMap<VertexStructGL> vertex_structs_; | 454 ResourceMap<VertexStructGL> vertex_structs_; |
| 454 ResourceMap<EffectGL> effects_; | 455 ResourceMap<EffectGL> effects_; |
| 455 ResourceMap<EffectParamGL> effect_params_; | 456 ResourceMap<EffectParamGL> effect_params_; |
| 456 ResourceMap<TextureGL> textures_; | 457 ResourceMap<TextureGL> textures_; |
| 457 ResourceMap<SamplerGL> samplers_; | 458 ResourceMap<SamplerGL> samplers_; |
| 458 ResourceMap<RenderSurfaceGL> render_surfaces_; | 459 ResourceMap<RenderSurfaceGL> render_surfaces_; |
| 459 ResourceMap<RenderDepthStencilSurfaceGL> depth_surfaces_; | 460 ResourceMap<RenderDepthStencilSurfaceGL> depth_surfaces_; |
| 460 }; | 461 }; |
| 461 | 462 |
| 463 } // namespace o3d |
| 462 } // namespace command_buffer | 464 } // namespace command_buffer |
| 463 } // namespace o3d | 465 } // namespace o3d |
| 464 | 466 |
| 465 #endif // O3D_COMMAND_BUFFER_SERVICE_CROSS_GL_GAPI_GL_H_ | 467 #endif // O3D_COMMAND_BUFFER_SERVICE_CROSS_GL_GAPI_GL_H_ |
| OLD | NEW |