| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 // Gets the value of the result. | 413 // Gets the value of the result. |
| 414 template <typename T> | 414 template <typename T> |
| 415 T GetResultAs() { | 415 T GetResultAs() { |
| 416 return static_cast<T>(GetResultBuffer()); | 416 return static_cast<T>(GetResultBuffer()); |
| 417 } | 417 } |
| 418 | 418 |
| 419 void* GetResultBuffer(); | 419 void* GetResultBuffer(); |
| 420 int32_t GetResultShmId(); | 420 int32_t GetResultShmId(); |
| 421 uint32_t GetResultShmOffset(); | 421 uint32_t GetResultShmOffset(); |
| 422 | 422 |
| 423 // Lazily determines if GL_ANGLE_pack_reverse_row_order is available | |
| 424 bool IsAnglePackReverseRowOrderAvailable(); | |
| 425 bool IsChromiumFramebufferMultisampleAvailable(); | 423 bool IsChromiumFramebufferMultisampleAvailable(); |
| 426 | 424 |
| 427 bool IsExtensionAvailableHelper( | 425 bool IsExtensionAvailableHelper( |
| 428 const char* extension, ExtensionStatus* status); | 426 const char* extension, ExtensionStatus* status); |
| 429 | 427 |
| 430 // Gets the GLError through our wrapper. | 428 // Gets the GLError through our wrapper. |
| 431 GLenum GetGLError(); | 429 GLenum GetGLError(); |
| 432 | 430 |
| 433 // Sets our wrapper for the GLError. | 431 // Sets our wrapper for the GLError. |
| 434 void SetGLError(GLenum error, const char* function_name, const char* msg); | 432 void SetGLError(GLenum error, const char* function_name, const char* msg); |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 700 GLES2Util util_; | 698 GLES2Util util_; |
| 701 GLES2CmdHelper* helper_; | 699 GLES2CmdHelper* helper_; |
| 702 TransferBufferInterface* transfer_buffer_; | 700 TransferBufferInterface* transfer_buffer_; |
| 703 std::string last_error_; | 701 std::string last_error_; |
| 704 DebugMarkerManager debug_marker_manager_; | 702 DebugMarkerManager debug_marker_manager_; |
| 705 std::string this_in_hex_; | 703 std::string this_in_hex_; |
| 706 | 704 |
| 707 std::queue<int32_t> swap_buffers_tokens_; | 705 std::queue<int32_t> swap_buffers_tokens_; |
| 708 std::queue<int32_t> rate_limit_tokens_; | 706 std::queue<int32_t> rate_limit_tokens_; |
| 709 | 707 |
| 710 ExtensionStatus angle_pack_reverse_row_order_status_; | |
| 711 ExtensionStatus chromium_framebuffer_multisample_; | 708 ExtensionStatus chromium_framebuffer_multisample_; |
| 712 | 709 |
| 713 GLStaticState static_state_; | 710 GLStaticState static_state_; |
| 714 ClientContextState state_; | 711 ClientContextState state_; |
| 715 | 712 |
| 716 // pack alignment as last set by glPixelStorei | 713 // pack alignment as last set by glPixelStorei |
| 717 GLint pack_alignment_; | 714 GLint pack_alignment_; |
| 718 | 715 |
| 719 // pack row length as last set by glPixelStorei | 716 // pack row length as last set by glPixelStorei |
| 720 GLint pack_row_length_; | 717 GLint pack_row_length_; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 736 | 733 |
| 737 // unpack skip rows as last set by glPixelStorei | 734 // unpack skip rows as last set by glPixelStorei |
| 738 GLint unpack_skip_rows_; | 735 GLint unpack_skip_rows_; |
| 739 | 736 |
| 740 // unpack skip pixels as last set by glPixelStorei | 737 // unpack skip pixels as last set by glPixelStorei |
| 741 GLint unpack_skip_pixels_; | 738 GLint unpack_skip_pixels_; |
| 742 | 739 |
| 743 // unpack skip images as last set by glPixelStorei | 740 // unpack skip images as last set by glPixelStorei |
| 744 GLint unpack_skip_images_; | 741 GLint unpack_skip_images_; |
| 745 | 742 |
| 746 // pack reverse row order as last set by glPixelstorei | |
| 747 bool pack_reverse_row_order_; | |
| 748 | |
| 749 scoped_ptr<TextureUnit[]> texture_units_; | 743 scoped_ptr<TextureUnit[]> texture_units_; |
| 750 | 744 |
| 751 // 0 to gl_state_.max_combined_texture_image_units. | 745 // 0 to gl_state_.max_combined_texture_image_units. |
| 752 GLuint active_texture_unit_; | 746 GLuint active_texture_unit_; |
| 753 | 747 |
| 754 GLuint bound_framebuffer_; | 748 GLuint bound_framebuffer_; |
| 755 GLuint bound_read_framebuffer_; | 749 GLuint bound_read_framebuffer_; |
| 756 GLuint bound_renderbuffer_; | 750 GLuint bound_renderbuffer_; |
| 757 GLuint bound_valuebuffer_; | 751 GLuint bound_valuebuffer_; |
| 758 | 752 |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 879 | 873 |
| 880 inline bool GLES2Implementation::GetTexParameterivHelper( | 874 inline bool GLES2Implementation::GetTexParameterivHelper( |
| 881 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { | 875 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { |
| 882 return false; | 876 return false; |
| 883 } | 877 } |
| 884 | 878 |
| 885 } // namespace gles2 | 879 } // namespace gles2 |
| 886 } // namespace gpu | 880 } // namespace gpu |
| 887 | 881 |
| 888 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 882 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
| OLD | NEW |