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