| 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 GPU_COMMAND_BUFFER_CLIENT_SHARE_GROUP_H_ | 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_SHARE_GROUP_H_ |
| 6 #define GPU_COMMAND_BUFFER_CLIENT_SHARE_GROUP_H_ | 6 #define GPU_COMMAND_BUFFER_CLIENT_SHARE_GROUP_H_ |
| 7 | 7 |
| 8 #include <GLES2/gl2.h> | 8 #include <GLES2/gl2.h> |
| 9 #include <stdint.h> |
| 10 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 10 #include "gles2_impl_export.h" | 12 #include "gles2_impl_export.h" |
| 11 #include "gpu/command_buffer/client/ref_counted.h" | 13 #include "gpu/command_buffer/client/ref_counted.h" |
| 12 #include "gpu/command_buffer/common/gles2_cmd_format.h" | 14 #include "gpu/command_buffer/common/gles2_cmd_format.h" |
| 13 | 15 |
| 14 namespace gpu { | 16 namespace gpu { |
| 15 namespace gles2 { | 17 namespace gles2 { |
| 16 | 18 |
| 17 class GLES2Implementation; | 19 class GLES2Implementation; |
| 18 class GLES2ImplementationTest; | 20 class GLES2ImplementationTest; |
| 19 class ProgramInfoManager; | 21 class ProgramInfoManager; |
| 20 | 22 |
| 21 typedef void (GLES2Implementation::*DeleteFn)(GLsizei n, const GLuint* ids); | 23 typedef void (GLES2Implementation::*DeleteFn)(GLsizei n, const GLuint* ids); |
| 22 typedef void (GLES2Implementation::*DeleteRangeFn)(const GLuint first_id, | 24 typedef void (GLES2Implementation::*DeleteRangeFn)(const GLuint first_id, |
| 23 GLsizei range); | 25 GLsizei range); |
| 24 typedef void (GLES2Implementation::*BindFn)(GLenum target, GLuint id); | 26 typedef void (GLES2Implementation::*BindFn)(GLenum target, GLuint id); |
| 25 typedef void (GLES2Implementation::*BindIndexedFn)( \ | 27 typedef void (GLES2Implementation::*BindIndexedFn)( \ |
| 26 GLenum target, GLuint index, GLuint id); | 28 GLenum target, GLuint index, GLuint id); |
| 27 typedef void (GLES2Implementation::*BindIndexedRangeFn)( \ | 29 typedef void (GLES2Implementation::*BindIndexedRangeFn)( \ |
| 28 GLenum target, GLuint index, GLuint id, GLintptr offset, GLsizeiptr size); | 30 GLenum target, GLuint index, GLuint id, GLintptr offset, GLsizeiptr size); |
| 29 | 31 |
| 30 class ShareGroupContextData { | 32 class ShareGroupContextData { |
| 31 public: | 33 public: |
| 32 struct IdHandlerData { | 34 struct IdHandlerData { |
| 33 IdHandlerData(); | 35 IdHandlerData(); |
| 34 ~IdHandlerData(); | 36 ~IdHandlerData(); |
| 35 | 37 |
| 36 std::vector<GLuint> freed_ids_; | 38 std::vector<GLuint> freed_ids_; |
| 37 uint32 flush_generation_; | 39 uint32_t flush_generation_; |
| 38 }; | 40 }; |
| 39 | 41 |
| 40 IdHandlerData* id_handler_data(int namespace_id) { | 42 IdHandlerData* id_handler_data(int namespace_id) { |
| 41 return &id_handler_data_[namespace_id]; | 43 return &id_handler_data_[namespace_id]; |
| 42 } | 44 } |
| 43 | 45 |
| 44 private: | 46 private: |
| 45 IdHandlerData id_handler_data_[id_namespaces::kNumIdNamespaces]; | 47 IdHandlerData id_handler_data_[id_namespaces::kNumIdNamespaces]; |
| 46 }; | 48 }; |
| 47 | 49 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 bool bind_generates_resource_; | 160 bool bind_generates_resource_; |
| 159 uint64_t tracing_guid_; | 161 uint64_t tracing_guid_; |
| 160 | 162 |
| 161 DISALLOW_COPY_AND_ASSIGN(ShareGroup); | 163 DISALLOW_COPY_AND_ASSIGN(ShareGroup); |
| 162 }; | 164 }; |
| 163 | 165 |
| 164 } // namespace gles2 | 166 } // namespace gles2 |
| 165 } // namespace gpu | 167 } // namespace gpu |
| 166 | 168 |
| 167 #endif // GPU_COMMAND_BUFFER_CLIENT_SHARE_GROUP_H_ | 169 #endif // GPU_COMMAND_BUFFER_CLIENT_SHARE_GROUP_H_ |
| OLD | NEW |