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

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

Issue 12892005: Implement client side PBOs for glReadPixel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make GLHelper constructor explicit Created 7 years, 8 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 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 475
476 IdHandlerInterface* GetIdHandler(int id_namespace) const; 476 IdHandlerInterface* GetIdHandler(int id_namespace) const;
477 477
478 void FinishHelper(); 478 void FinishHelper();
479 479
480 // Asserts that the context is lost. 480 // Asserts that the context is lost.
481 // NOTE: This is an expensive call and should only be called 481 // NOTE: This is an expensive call and should only be called
482 // for error checking. 482 // for error checking.
483 bool MustBeContextLost(); 483 bool MustBeContextLost();
484 484
485 bool GetBoundPixelTransferBuffer(
486 GLenum target, const char* function_name, GLuint* buffer_id);
485 BufferTracker::Buffer* GetBoundPixelUnpackTransferBufferIfValid( 487 BufferTracker::Buffer* GetBoundPixelUnpackTransferBufferIfValid(
488 GLuint buffer_id,
486 const char* function_name, GLuint offset, GLsizei size); 489 const char* function_name, GLuint offset, GLsizei size);
487 490
488 const std::string& GetLogPrefix() const; 491 const std::string& GetLogPrefix() const;
489 492
490 #if defined(GL_CLIENT_FAIL_GL_ERRORS) 493 #if defined(GL_CLIENT_FAIL_GL_ERRORS)
491 void CheckGLError(); 494 void CheckGLError();
492 void FailGLError(GLenum error); 495 void FailGLError(GLenum error);
493 #else 496 #else
494 void CheckGLError() { } 497 void CheckGLError() { }
495 void FailGLError(GLenum /* error */) { } 498 void FailGLError(GLenum /* error */) { }
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 GLuint bound_framebuffer_; 543 GLuint bound_framebuffer_;
541 GLuint bound_read_framebuffer_; 544 GLuint bound_read_framebuffer_;
542 GLuint bound_renderbuffer_; 545 GLuint bound_renderbuffer_;
543 546
544 // The program in use by glUseProgram 547 // The program in use by glUseProgram
545 GLuint current_program_; 548 GLuint current_program_;
546 549
547 // The currently bound array buffer. 550 // The currently bound array buffer.
548 GLuint bound_array_buffer_id_; 551 GLuint bound_array_buffer_id_;
549 552
550 // The currently bound pixel transfer buffer. 553 // The currently bound pixel transfer buffers.
554 GLuint bound_pixel_pack_transfer_buffer_id_;
551 GLuint bound_pixel_unpack_transfer_buffer_id_; 555 GLuint bound_pixel_unpack_transfer_buffer_id_;
552 556
553 // Client side management for vertex array objects. Needed to correctly 557 // Client side management for vertex array objects. Needed to correctly
554 // track client side arrays. 558 // track client side arrays.
555 scoped_ptr<VertexArrayObjectManager> vertex_array_object_manager_; 559 scoped_ptr<VertexArrayObjectManager> vertex_array_object_manager_;
556 560
557 GLuint reserved_ids_[2]; 561 GLuint reserved_ids_[2];
558 562
559 // Current GL error bits. 563 // Current GL error bits.
560 uint32 error_bits_; 564 uint32 error_bits_;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 637
634 inline bool GLES2Implementation::GetTexParameterivHelper( 638 inline bool GLES2Implementation::GetTexParameterivHelper(
635 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { 639 GLenum /* target */, GLenum /* pname */, GLint* /* params */) {
636 return false; 640 return false;
637 } 641 }
638 642
639 } // namespace gles2 643 } // namespace gles2
640 } // namespace gpu 644 } // namespace gpu
641 645
642 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ 646 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/buffer_tracker.h ('k') | gpu/command_buffer/client/gles2_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698