| 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_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 <GLES2/gl2.h> | 8 #include <GLES2/gl2.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 } | 253 } |
| 254 | 254 |
| 255 const Capabilities& capabilities() const { | 255 const Capabilities& capabilities() const { |
| 256 return capabilities_; | 256 return capabilities_; |
| 257 } | 257 } |
| 258 | 258 |
| 259 GpuControl* gpu_control() { | 259 GpuControl* gpu_control() { |
| 260 return gpu_control_; | 260 return gpu_control_; |
| 261 } | 261 } |
| 262 | 262 |
| 263 ShareGroupContextData* share_group_context_data() { |
| 264 return &share_group_context_data_; |
| 265 } |
| 266 |
| 263 private: | 267 private: |
| 264 friend class GLES2ImplementationTest; | 268 friend class GLES2ImplementationTest; |
| 265 friend class VertexArrayObjectManager; | 269 friend class VertexArrayObjectManager; |
| 266 | 270 |
| 267 // Used to track whether an extension is available | 271 // Used to track whether an extension is available |
| 268 enum ExtensionStatus { | 272 enum ExtensionStatus { |
| 269 kAvailableExtensionStatus, | 273 kAvailableExtensionStatus, |
| 270 kUnavailableExtensionStatus, | 274 kUnavailableExtensionStatus, |
| 271 kUnknownExtensionStatus | 275 kUnknownExtensionStatus |
| 272 }; | 276 }; |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 689 | 693 |
| 690 typedef std::map<const void*, MappedBuffer> MappedBufferMap; | 694 typedef std::map<const void*, MappedBuffer> MappedBufferMap; |
| 691 MappedBufferMap mapped_buffers_; | 695 MappedBufferMap mapped_buffers_; |
| 692 | 696 |
| 693 typedef std::map<const void*, MappedTexture> MappedTextureMap; | 697 typedef std::map<const void*, MappedTexture> MappedTextureMap; |
| 694 MappedTextureMap mapped_textures_; | 698 MappedTextureMap mapped_textures_; |
| 695 | 699 |
| 696 scoped_ptr<MappedMemoryManager> mapped_memory_; | 700 scoped_ptr<MappedMemoryManager> mapped_memory_; |
| 697 | 701 |
| 698 scoped_refptr<ShareGroup> share_group_; | 702 scoped_refptr<ShareGroup> share_group_; |
| 703 ShareGroupContextData share_group_context_data_; |
| 699 | 704 |
| 700 scoped_ptr<QueryTracker> query_tracker_; | 705 scoped_ptr<QueryTracker> query_tracker_; |
| 701 typedef std::map<GLuint, QueryTracker::Query*> QueryMap; | 706 typedef std::map<GLuint, QueryTracker::Query*> QueryMap; |
| 702 QueryMap current_queries_; | 707 QueryMap current_queries_; |
| 703 | 708 |
| 704 scoped_ptr<BufferTracker> buffer_tracker_; | 709 scoped_ptr<BufferTracker> buffer_tracker_; |
| 705 | 710 |
| 706 scoped_ptr<GpuMemoryBufferTracker> gpu_memory_buffer_tracker_; | 711 scoped_ptr<GpuMemoryBufferTracker> gpu_memory_buffer_tracker_; |
| 707 | 712 |
| 708 ErrorMessageCallback* error_message_callback_; | 713 ErrorMessageCallback* error_message_callback_; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 754 | 759 |
| 755 inline bool GLES2Implementation::GetTexParameterivHelper( | 760 inline bool GLES2Implementation::GetTexParameterivHelper( |
| 756 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { | 761 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { |
| 757 return false; | 762 return false; |
| 758 } | 763 } |
| 759 | 764 |
| 760 } // namespace gles2 | 765 } // namespace gles2 |
| 761 } // namespace gpu | 766 } // namespace gpu |
| 762 | 767 |
| 763 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 768 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
| OLD | NEW |