| 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 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 | 461 |
| 462 bool IsExtensionAvailable(const char* ext); | 462 bool IsExtensionAvailable(const char* ext); |
| 463 | 463 |
| 464 // Caches certain capabilties state. Return true if cached. | 464 // Caches certain capabilties state. Return true if cached. |
| 465 bool SetCapabilityState(GLenum cap, bool enabled); | 465 bool SetCapabilityState(GLenum cap, bool enabled); |
| 466 | 466 |
| 467 IdHandlerInterface* GetIdHandler(int id_namespace) const; | 467 IdHandlerInterface* GetIdHandler(int id_namespace) const; |
| 468 | 468 |
| 469 void FinishHelper(); | 469 void FinishHelper(); |
| 470 | 470 |
| 471 // Checks if the context is lost. | 471 // Asserts that the context is lost. |
| 472 // NOTE: This is an expensive call and should only be called | 472 // NOTE: This is an expensive call and should only be called |
| 473 // for error checking. | 473 // for error checking. |
| 474 bool MustBeContextLost(); | 474 bool MustBeContextLost(); |
| 475 | 475 |
| 476 const std::string& GetLogPrefix() const; | 476 const std::string& GetLogPrefix() const; |
| 477 | 477 |
| 478 GLES2Util util_; | 478 GLES2Util util_; |
| 479 GLES2CmdHelper* helper_; | 479 GLES2CmdHelper* helper_; |
| 480 TransferBufferInterface* transfer_buffer_; | 480 TransferBufferInterface* transfer_buffer_; |
| 481 std::string last_error_; | 481 std::string last_error_; |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 | 560 |
| 561 scoped_ptr<MappedMemoryManager> mapped_memory_; | 561 scoped_ptr<MappedMemoryManager> mapped_memory_; |
| 562 | 562 |
| 563 scoped_refptr<ShareGroup> share_group_; | 563 scoped_refptr<ShareGroup> share_group_; |
| 564 | 564 |
| 565 scoped_ptr<QueryTracker> query_tracker_; | 565 scoped_ptr<QueryTracker> query_tracker_; |
| 566 QueryTracker::Query* current_query_; | 566 QueryTracker::Query* current_query_; |
| 567 | 567 |
| 568 ErrorMessageCallback* error_message_callback_; | 568 ErrorMessageCallback* error_message_callback_; |
| 569 | 569 |
| 570 bool context_lost_; | |
| 571 | |
| 572 DISALLOW_COPY_AND_ASSIGN(GLES2Implementation); | 570 DISALLOW_COPY_AND_ASSIGN(GLES2Implementation); |
| 573 }; | 571 }; |
| 574 | 572 |
| 575 inline bool GLES2Implementation::GetBufferParameterivHelper( | 573 inline bool GLES2Implementation::GetBufferParameterivHelper( |
| 576 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { | 574 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { |
| 577 return false; | 575 return false; |
| 578 } | 576 } |
| 579 | 577 |
| 580 inline bool GLES2Implementation::GetFramebufferAttachmentParameterivHelper( | 578 inline bool GLES2Implementation::GetFramebufferAttachmentParameterivHelper( |
| 581 GLenum /* target */, | 579 GLenum /* target */, |
| (...skipping 20 matching lines...) Expand all Loading... |
| 602 | 600 |
| 603 inline bool GLES2Implementation::GetTexParameterivHelper( | 601 inline bool GLES2Implementation::GetTexParameterivHelper( |
| 604 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { | 602 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { |
| 605 return false; | 603 return false; |
| 606 } | 604 } |
| 607 | 605 |
| 608 } // namespace gles2 | 606 } // namespace gles2 |
| 609 } // namespace gpu | 607 } // namespace gpu |
| 610 | 608 |
| 611 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 609 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
| OLD | NEW |