| 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 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 575 std::set<std::string> requestable_extensions_set_; | 575 std::set<std::string> requestable_extensions_set_; |
| 576 | 576 |
| 577 typedef std::map<const void*, MappedBuffer> MappedBufferMap; | 577 typedef std::map<const void*, MappedBuffer> MappedBufferMap; |
| 578 MappedBufferMap mapped_buffers_; | 578 MappedBufferMap mapped_buffers_; |
| 579 | 579 |
| 580 typedef std::map<const void*, MappedTexture> MappedTextureMap; | 580 typedef std::map<const void*, MappedTexture> MappedTextureMap; |
| 581 MappedTextureMap mapped_textures_; | 581 MappedTextureMap mapped_textures_; |
| 582 | 582 |
| 583 scoped_ptr<MappedMemoryManager> mapped_memory_; | 583 scoped_ptr<MappedMemoryManager> mapped_memory_; |
| 584 | 584 |
| 585 // Cache results of GetShaderPrecisionFormat |
| 586 typedef std::pair<GLenum,GLenum> ShaderPrecisionCacheKey; |
| 587 typedef std::map<ShaderPrecisionCacheKey, |
| 588 cmds::GetShaderPrecisionFormat::Result> |
| 589 ShaderPrecisionCacheMap; |
| 590 ShaderPrecisionCacheMap shader_precision_cache_; |
| 591 |
| 585 scoped_refptr<ShareGroup> share_group_; | 592 scoped_refptr<ShareGroup> share_group_; |
| 586 | 593 |
| 587 scoped_ptr<QueryTracker> query_tracker_; | 594 scoped_ptr<QueryTracker> query_tracker_; |
| 588 QueryTracker::Query* current_query_; | 595 QueryTracker::Query* current_query_; |
| 589 | 596 |
| 590 scoped_ptr<BufferTracker> buffer_tracker_; | 597 scoped_ptr<BufferTracker> buffer_tracker_; |
| 591 | 598 |
| 592 ErrorMessageCallback* error_message_callback_; | 599 ErrorMessageCallback* error_message_callback_; |
| 593 | 600 |
| 594 scoped_ptr<std::string> current_trace_name_; | 601 scoped_ptr<std::string> current_trace_name_; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 626 | 633 |
| 627 inline bool GLES2Implementation::GetTexParameterivHelper( | 634 inline bool GLES2Implementation::GetTexParameterivHelper( |
| 628 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { | 635 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { |
| 629 return false; | 636 return false; |
| 630 } | 637 } |
| 631 | 638 |
| 632 } // namespace gles2 | 639 } // namespace gles2 |
| 633 } // namespace gpu | 640 } // namespace gpu |
| 634 | 641 |
| 635 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 642 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
| OLD | NEW |