| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H | 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H |
| 6 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H | 6 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H |
| 7 | 7 |
| 8 #include "base/shared_memory.h" | 8 #include "base/shared_memory.h" |
| 9 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 9 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
| 10 #include "gpu/command_buffer/client/gles2_cmd_helper.h" | 10 #include "gpu/command_buffer/client/gles2_cmd_helper.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 // GLES2CmdHelper but that entails changing your code to use and deal with | 21 // GLES2CmdHelper but that entails changing your code to use and deal with |
| 22 // shared memory and synchronization issues. | 22 // shared memory and synchronization issues. |
| 23 class GLES2Implementation { | 23 class GLES2Implementation { |
| 24 public: | 24 public: |
| 25 GLES2Implementation( | 25 GLES2Implementation( |
| 26 GLES2CmdHelper* helper, | 26 GLES2CmdHelper* helper, |
| 27 size_t transfer_buffer_size, | 27 size_t transfer_buffer_size, |
| 28 void* transfer_buffer, | 28 void* transfer_buffer, |
| 29 int32 transfer_buffer_id); | 29 int32 transfer_buffer_id); |
| 30 | 30 |
| 31 // The GLES2CmdHelper being used by this GLES2Implementation. You can use |
| 32 // this to issue cmds at a lower level for certain kinds of optimization. |
| 33 GLES2CmdHelper* helper() const { |
| 34 return helper_; |
| 35 } |
| 36 |
| 31 // Include the auto-generated part of this class. We split this because | 37 // Include the auto-generated part of this class. We split this because |
| 32 // it means we can easily edit the non-auto generated parts right here in | 38 // it means we can easily edit the non-auto generated parts right here in |
| 33 // this file instead of having to edit some template or the code generator. | 39 // this file instead of having to edit some template or the code generator. |
| 34 #include "gpu/command_buffer/client/gles2_implementation_autogen.h" | 40 #include "gpu/command_buffer/client/gles2_implementation_autogen.h" |
| 35 | 41 |
| 36 private: | 42 private: |
| 37 // Makes a set of Ids for glGen___ functions. | 43 // Makes a set of Ids for glGen___ functions. |
| 38 void MakeIds(GLsizei n, GLuint* ids); | 44 void MakeIds(GLsizei n, GLuint* ids); |
| 39 | 45 |
| 40 // Frees a set of Ids for glDelete___ functions. | 46 // Frees a set of Ids for glDelete___ functions. |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 | 84 |
| 79 DISALLOW_COPY_AND_ASSIGN(GLES2Implementation); | 85 DISALLOW_COPY_AND_ASSIGN(GLES2Implementation); |
| 80 }; | 86 }; |
| 81 | 87 |
| 82 | 88 |
| 83 } // namespace gles2 | 89 } // namespace gles2 |
| 84 } // namespace command_buffer | 90 } // namespace command_buffer |
| 85 | 91 |
| 86 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H | 92 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H |
| 87 | 93 |
| OLD | NEW |