| 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_SERVICE_PROGRAM_MANAGER_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_PROGRAM_MANAGER_H_ |
| 6 #define GPU_COMMAND_BUFFER_SERVICE_PROGRAM_MANAGER_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_PROGRAM_MANAGER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 bool CheckVaryingsPacking(VaryingsPackingOption option) const; | 379 bool CheckVaryingsPacking(VaryingsPackingOption option) const; |
| 380 | 380 |
| 381 void TransformFeedbackVaryings(GLsizei count, const char* const* varyings, | 381 void TransformFeedbackVaryings(GLsizei count, const char* const* varyings, |
| 382 GLenum buffer_mode); | 382 GLenum buffer_mode); |
| 383 | 383 |
| 384 // Visible for testing | 384 // Visible for testing |
| 385 const LocationMap& bind_attrib_location_map() const { | 385 const LocationMap& bind_attrib_location_map() const { |
| 386 return bind_attrib_location_map_; | 386 return bind_attrib_location_map_; |
| 387 } | 387 } |
| 388 | 388 |
| 389 const std::vector<std::string>& effective_transform_feedback_varyings() | 389 const std::vector<std::string>& transform_feedback_varyings() const { |
| 390 const { | 390 return transform_feedback_varyings_; |
| 391 return effective_transform_feedback_varyings_; | |
| 392 } | 391 } |
| 393 | 392 |
| 394 GLenum effective_transform_feedback_buffer_mode() const { | 393 GLenum transform_feedback_buffer_mode() const { |
| 395 return effective_transform_feedback_buffer_mode_; | 394 return transform_feedback_buffer_mode_; |
| 396 } | 395 } |
| 397 | 396 |
| 398 // See member declaration for details. | 397 // See member declaration for details. |
| 399 // The data are only valid after a successful link. | 398 // The data are only valid after a successful link. |
| 400 uint32_t fragment_output_type_mask() const { | 399 uint32_t fragment_output_type_mask() const { |
| 401 return fragment_output_type_mask_; | 400 return fragment_output_type_mask_; |
| 402 } | 401 } |
| 403 uint32_t fragment_output_written_mask() const { | 402 uint32_t fragment_output_written_mask() const { |
| 404 return fragment_output_written_mask_; | 403 return fragment_output_written_mask_; |
| 405 } | 404 } |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 | 546 |
| 548 // Log info | 547 // Log info |
| 549 std::unique_ptr<std::string> log_info_; | 548 std::unique_ptr<std::string> log_info_; |
| 550 | 549 |
| 551 // attribute-location binding map from glBindAttribLocation() calls. | 550 // attribute-location binding map from glBindAttribLocation() calls. |
| 552 LocationMap bind_attrib_location_map_; | 551 LocationMap bind_attrib_location_map_; |
| 553 | 552 |
| 554 // uniform-location binding map from glBindUniformLocationCHROMIUM() calls. | 553 // uniform-location binding map from glBindUniformLocationCHROMIUM() calls. |
| 555 LocationMap bind_uniform_location_map_; | 554 LocationMap bind_uniform_location_map_; |
| 556 | 555 |
| 557 // Set by glTransformFeedbackVaryings(). | |
| 558 std::vector<std::string> transform_feedback_varyings_; | 556 std::vector<std::string> transform_feedback_varyings_; |
| 557 |
| 559 GLenum transform_feedback_buffer_mode_; | 558 GLenum transform_feedback_buffer_mode_; |
| 560 | 559 |
| 561 // After a successful link. | |
| 562 std::vector<std::string> effective_transform_feedback_varyings_; | |
| 563 GLenum effective_transform_feedback_buffer_mode_; | |
| 564 | |
| 565 // Fragment input-location binding map from | 560 // Fragment input-location binding map from |
| 566 // glBindFragmentInputLocationCHROMIUM() calls. | 561 // glBindFragmentInputLocationCHROMIUM() calls. |
| 567 LocationMap bind_fragment_input_location_map_; | 562 LocationMap bind_fragment_input_location_map_; |
| 568 | 563 |
| 569 // output variable - (location,index) binding map from | 564 // output variable - (location,index) binding map from |
| 570 // glBindFragDataLocation() and ..IndexedEXT() calls. | 565 // glBindFragDataLocation() and ..IndexedEXT() calls. |
| 571 LocationIndexMap bind_program_output_location_index_map_; | 566 LocationIndexMap bind_program_output_location_index_map_; |
| 572 | 567 |
| 573 // It's stored in the order of uniform block indices, i.e., the first | 568 // It's stored in the order of uniform block indices, i.e., the first |
| 574 // entry is the info about UniformBlock with index 0, etc. | 569 // entry is the info about UniformBlock with index 0, etc. |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 689 }; | 684 }; |
| 690 | 685 |
| 691 inline const FeatureInfo& Program::feature_info() const { | 686 inline const FeatureInfo& Program::feature_info() const { |
| 692 return *manager_->feature_info_.get(); | 687 return *manager_->feature_info_.get(); |
| 693 } | 688 } |
| 694 | 689 |
| 695 } // namespace gles2 | 690 } // namespace gles2 |
| 696 } // namespace gpu | 691 } // namespace gpu |
| 697 | 692 |
| 698 #endif // GPU_COMMAND_BUFFER_SERVICE_PROGRAM_MANAGER_H_ | 693 #endif // GPU_COMMAND_BUFFER_SERVICE_PROGRAM_MANAGER_H_ |
| OLD | NEW |