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_TEXTURE_MANAGER_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ |
6 #define GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
631 GLint num_observers_; | 631 GLint num_observers_; |
632 | 632 |
633 DISALLOW_COPY_AND_ASSIGN(TextureRef); | 633 DISALLOW_COPY_AND_ASSIGN(TextureRef); |
634 }; | 634 }; |
635 | 635 |
636 // Holds data that is per gles2_cmd_decoder, but is related to to the | 636 // Holds data that is per gles2_cmd_decoder, but is related to to the |
637 // TextureManager. | 637 // TextureManager. |
638 struct DecoderTextureState { | 638 struct DecoderTextureState { |
639 // total_texture_upload_time automatically initialized to 0 in default | 639 // total_texture_upload_time automatically initialized to 0 in default |
640 // constructor. | 640 // constructor. |
641 explicit DecoderTextureState(const FeatureInfo::Workarounds& workarounds) | 641 explicit DecoderTextureState(const GpuDriverBugWorkarounds& workarounds) |
642 : tex_image_failed(false), | 642 : tex_image_failed(false), |
643 texture_upload_count(0), | 643 texture_upload_count(0), |
644 texsubimage_faster_than_teximage( | 644 texsubimage_faster_than_teximage( |
645 workarounds.texsubimage_faster_than_teximage), | 645 workarounds.texsubimage_faster_than_teximage), |
646 force_cube_map_positive_x_allocation( | 646 force_cube_map_positive_x_allocation( |
647 workarounds.force_cube_map_positive_x_allocation), | 647 workarounds.force_cube_map_positive_x_allocation), |
648 force_cube_complete(workarounds.force_cube_complete), | 648 force_cube_complete(workarounds.force_cube_complete), |
649 unpack_alignment_workaround_with_unpack_buffer( | 649 unpack_alignment_workaround_with_unpack_buffer( |
650 workarounds.unpack_alignment_workaround_with_unpack_buffer) {} | 650 workarounds.unpack_alignment_workaround_with_unpack_buffer) {} |
651 | 651 |
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1138 private: | 1138 private: |
1139 DecoderTextureState* texture_state_; | 1139 DecoderTextureState* texture_state_; |
1140 base::TimeTicks begin_time_; | 1140 base::TimeTicks begin_time_; |
1141 DISALLOW_COPY_AND_ASSIGN(ScopedTextureUploadTimer); | 1141 DISALLOW_COPY_AND_ASSIGN(ScopedTextureUploadTimer); |
1142 }; | 1142 }; |
1143 | 1143 |
1144 } // namespace gles2 | 1144 } // namespace gles2 |
1145 } // namespace gpu | 1145 } // namespace gpu |
1146 | 1146 |
1147 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ | 1147 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ |
OLD | NEW |