| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 // this to issue cmds at a lower level for certain kinds of optimization. | 36 // this to issue cmds at a lower level for certain kinds of optimization. |
| 37 GLES2CmdHelper* helper() const { | 37 GLES2CmdHelper* helper() const { |
| 38 return helper_; | 38 return helper_; |
| 39 } | 39 } |
| 40 | 40 |
| 41 // Include the auto-generated part of this class. We split this because | 41 // Include the auto-generated part of this class. We split this because |
| 42 // it means we can easily edit the non-auto generated parts right here in | 42 // it means we can easily edit the non-auto generated parts right here in |
| 43 // this file instead of having to edit some template or the code generator. | 43 // this file instead of having to edit some template or the code generator. |
| 44 #include "../client/gles2_implementation_autogen.h" | 44 #include "../client/gles2_implementation_autogen.h" |
| 45 | 45 |
| 46 private: | |
| 47 // Makes a set of Ids for glGen___ functions. | 46 // Makes a set of Ids for glGen___ functions. |
| 48 void MakeIds(GLsizei n, GLuint* ids); | 47 void MakeIds(GLsizei n, GLuint* ids); |
| 49 | 48 |
| 50 // Frees a set of Ids for glDelete___ functions. | 49 // Frees a set of Ids for glDelete___ functions. |
| 51 void FreeIds(GLsizei n, const GLuint* ids); | 50 void FreeIds(GLsizei n, const GLuint* ids); |
| 52 | 51 |
| 52 private: |
| 53 // Gets the shared memory id for the result buffer. | 53 // Gets the shared memory id for the result buffer. |
| 54 uint32 result_shm_id() const { | 54 uint32 result_shm_id() const { |
| 55 return transfer_buffer_id_; | 55 return transfer_buffer_id_; |
| 56 } | 56 } |
| 57 | 57 |
| 58 // Gets the shared memory offset for the result buffer. | 58 // Gets the shared memory offset for the result buffer. |
| 59 uint32 result_shm_offset() const { | 59 uint32 result_shm_offset() const { |
| 60 return result_shm_offset_; | 60 return result_shm_offset_; |
| 61 } | 61 } |
| 62 | 62 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 GLStringMap gl_strings_; | 122 GLStringMap gl_strings_; |
| 123 | 123 |
| 124 DISALLOW_COPY_AND_ASSIGN(GLES2Implementation); | 124 DISALLOW_COPY_AND_ASSIGN(GLES2Implementation); |
| 125 }; | 125 }; |
| 126 | 126 |
| 127 } // namespace gles2 | 127 } // namespace gles2 |
| 128 } // namespace gpu | 128 } // namespace gpu |
| 129 | 129 |
| 130 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 130 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
| 131 | 131 |
| OLD | NEW |