Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(644)

Side by Side Diff: gpu/command_buffer/client/gles2_implementation.h

Issue 10883036: Make glGetQueryObjectuivEXT return true for GL_QUERY_RESULT_AVAILABLE_EXT (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
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_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/cmd_buffer_helper_test.cc ('k') | gpu/command_buffer/client/gles2_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698