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 |
11 #include <map> | 11 #include <map> |
no sievers
2016/04/05 19:02:41
#include <memory>
Mostyn Bramley-Moore
2016/04/05 21:35:31
Done.
| |
12 #include <string> | 12 #include <string> |
13 #include <vector> | 13 #include <vector> |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
17 #include "gpu/command_buffer/service/common_decoder.h" | 17 #include "gpu/command_buffer/service/common_decoder.h" |
18 #include "gpu/command_buffer/service/gl_utils.h" | 18 #include "gpu/command_buffer/service/gl_utils.h" |
19 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | 19 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
20 #include "gpu/command_buffer/service/shader_manager.h" | 20 #include "gpu/command_buffer/service/shader_manager.h" |
21 #include "gpu/gpu_export.h" | 21 #include "gpu/gpu_export.h" |
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
499 // This is true if glLinkProgram was successful at least once. | 499 // This is true if glLinkProgram was successful at least once. |
500 bool valid_; | 500 bool valid_; |
501 | 501 |
502 // This is true if glLinkProgram was successful last time it was called. | 502 // This is true if glLinkProgram was successful last time it was called. |
503 bool link_status_; | 503 bool link_status_; |
504 | 504 |
505 // True if the uniforms have been cleared. | 505 // True if the uniforms have been cleared. |
506 bool uniforms_cleared_; | 506 bool uniforms_cleared_; |
507 | 507 |
508 // Log info | 508 // Log info |
509 scoped_ptr<std::string> log_info_; | 509 std::unique_ptr<std::string> log_info_; |
510 | 510 |
511 // attribute-location binding map from glBindAttribLocation() calls. | 511 // attribute-location binding map from glBindAttribLocation() calls. |
512 LocationMap bind_attrib_location_map_; | 512 LocationMap bind_attrib_location_map_; |
513 | 513 |
514 // uniform-location binding map from glBindUniformLocationCHROMIUM() calls. | 514 // uniform-location binding map from glBindUniformLocationCHROMIUM() calls. |
515 LocationMap bind_uniform_location_map_; | 515 LocationMap bind_uniform_location_map_; |
516 | 516 |
517 std::vector<std::string> transform_feedback_varyings_; | 517 std::vector<std::string> transform_feedback_varyings_; |
518 | 518 |
519 GLenum transform_feedback_buffer_mode_; | 519 GLenum transform_feedback_buffer_mode_; |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
617 }; | 617 }; |
618 | 618 |
619 inline const FeatureInfo& Program::feature_info() const { | 619 inline const FeatureInfo& Program::feature_info() const { |
620 return *manager_->feature_info_.get(); | 620 return *manager_->feature_info_.get(); |
621 } | 621 } |
622 | 622 |
623 } // namespace gles2 | 623 } // namespace gles2 |
624 } // namespace gpu | 624 } // namespace gpu |
625 | 625 |
626 #endif // GPU_COMMAND_BUFFER_SERVICE_PROGRAM_MANAGER_H_ | 626 #endif // GPU_COMMAND_BUFFER_SERVICE_PROGRAM_MANAGER_H_ |
OLD | NEW |