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

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

Issue 10012057: Add GL_EXT_unpack_subimage support to command buffer client code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 void BufferSubDataHelperImpl( 406 void BufferSubDataHelperImpl(
407 GLenum target, GLintptr offset, GLsizeiptr size, const void* data, 407 GLenum target, GLintptr offset, GLsizeiptr size, const void* data,
408 ScopedTransferBufferPtr* buffer); 408 ScopedTransferBufferPtr* buffer);
409 409
410 // Helper for GetVertexAttrib 410 // Helper for GetVertexAttrib
411 bool GetVertexAttribHelper(GLuint index, GLenum pname, uint32* param); 411 bool GetVertexAttribHelper(GLuint index, GLenum pname, uint32* param);
412 412
413 GLuint GetMaxValueInBufferCHROMIUMHelper( 413 GLuint GetMaxValueInBufferCHROMIUMHelper(
414 GLuint buffer_id, GLsizei count, GLenum type, GLuint offset); 414 GLuint buffer_id, GLsizei count, GLenum type, GLuint offset);
415 415
416 bool CopyRectToBufferFlipped( 416 // The pixels pointer should already account for unpack skip rows and skip
417 const void* pixels, GLsizei width, GLsizei height, GLenum format, 417 // pixels.
418 GLenum type, void* buffer);
419 void TexSubImage2DImpl( 418 void TexSubImage2DImpl(
420 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, 419 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width,
421 GLsizei height, GLenum format, GLenum type, const void* pixels, 420 GLsizei height, GLenum format, GLenum type, uint32 unpadded_row_size,
422 GLboolean internal, ScopedTransferBufferPtr* buffer); 421 const void* pixels, uint32 pixels_padded_row_size, GLboolean internal,
422 ScopedTransferBufferPtr* buffer, uint32 buffer_padded_row_size);
423 423
424 // Helpers for query functions. 424 // Helpers for query functions.
425 bool GetHelper(GLenum pname, GLint* params); 425 bool GetHelper(GLenum pname, GLint* params);
426 bool GetBooleanvHelper(GLenum pname, GLboolean* params); 426 bool GetBooleanvHelper(GLenum pname, GLboolean* params);
427 bool GetBufferParameterivHelper(GLenum target, GLenum pname, GLint* params); 427 bool GetBufferParameterivHelper(GLenum target, GLenum pname, GLint* params);
428 bool GetFloatvHelper(GLenum pname, GLfloat* params); 428 bool GetFloatvHelper(GLenum pname, GLfloat* params);
429 bool GetFramebufferAttachmentParameterivHelper( 429 bool GetFramebufferAttachmentParameterivHelper(
430 GLenum target, GLenum attachment, GLenum pname, GLint* params); 430 GLenum target, GLenum attachment, GLenum pname, GLint* params);
431 bool GetIntegervHelper(GLenum pname, GLint* params); 431 bool GetIntegervHelper(GLenum pname, GLint* params);
432 bool GetProgramivHelper(GLuint program, GLenum pname, GLint* params); 432 bool GetProgramivHelper(GLuint program, GLenum pname, GLint* params);
(...skipping 22 matching lines...) Expand all
455 455
456 // pack alignment as last set by glPixelStorei 456 // pack alignment as last set by glPixelStorei
457 GLint pack_alignment_; 457 GLint pack_alignment_;
458 458
459 // unpack alignment as last set by glPixelStorei 459 // unpack alignment as last set by glPixelStorei
460 GLint unpack_alignment_; 460 GLint unpack_alignment_;
461 461
462 // unpack yflip as last set by glPixelstorei 462 // unpack yflip as last set by glPixelstorei
463 bool unpack_flip_y_; 463 bool unpack_flip_y_;
464 464
465 // unpack row length as last set by glPixelStorei
466 GLint unpack_row_length_;
467
468 // unpack skip rows as last set by glPixelStorei
469 GLint unpack_skip_rows_;
470
471 // unpack skip pixels as last set by glPixelStorei
472 GLint unpack_skip_pixels_;
473
465 // pack reverse row order as last set by glPixelstorei 474 // pack reverse row order as last set by glPixelstorei
466 bool pack_reverse_row_order_; 475 bool pack_reverse_row_order_;
467 476
468 scoped_array<TextureUnit> texture_units_; 477 scoped_array<TextureUnit> texture_units_;
469 478
470 // 0 to gl_state_.max_combined_texture_image_units. 479 // 0 to gl_state_.max_combined_texture_image_units.
471 GLuint active_texture_unit_; 480 GLuint active_texture_unit_;
472 481
473 GLuint bound_framebuffer_; 482 GLuint bound_framebuffer_;
474 GLuint bound_renderbuffer_; 483 GLuint bound_renderbuffer_;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 564
556 inline bool GLES2Implementation::GetTexParameterivHelper( 565 inline bool GLES2Implementation::GetTexParameterivHelper(
557 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { 566 GLenum /* target */, GLenum /* pname */, GLint* /* params */) {
558 return false; 567 return false;
559 } 568 }
560 569
561 } // namespace gles2 570 } // namespace gles2
562 } // namespace gpu 571 } // namespace gpu
563 572
564 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ 573 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_
OLDNEW
« no previous file with comments | « gpu/GLES2/extensions/CHROMIUM/CHROMIUM_flipy.txt ('k') | gpu/command_buffer/client/gles2_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698