Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(332)

Side by Side Diff: gpu/command_buffer/service/texture_manager.h

Issue 1871613002: Compute GpuDriverBugWorkarounds only one time in the GPU process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 GLint num_observers_; 642 GLint num_observers_;
643 643
644 DISALLOW_COPY_AND_ASSIGN(TextureRef); 644 DISALLOW_COPY_AND_ASSIGN(TextureRef);
645 }; 645 };
646 646
647 // Holds data that is per gles2_cmd_decoder, but is related to to the 647 // Holds data that is per gles2_cmd_decoder, but is related to to the
648 // TextureManager. 648 // TextureManager.
649 struct DecoderTextureState { 649 struct DecoderTextureState {
650 // total_texture_upload_time automatically initialized to 0 in default 650 // total_texture_upload_time automatically initialized to 0 in default
651 // constructor. 651 // constructor.
652 explicit DecoderTextureState(const FeatureInfo::Workarounds& workarounds) 652 explicit DecoderTextureState(const GpuDriverBugWorkarounds& workarounds)
653 : tex_image_failed(false), 653 : tex_image_failed(false),
654 texture_upload_count(0), 654 texture_upload_count(0),
655 texsubimage_faster_than_teximage( 655 texsubimage_faster_than_teximage(
656 workarounds.texsubimage_faster_than_teximage), 656 workarounds.texsubimage_faster_than_teximage),
657 force_cube_map_positive_x_allocation( 657 force_cube_map_positive_x_allocation(
658 workarounds.force_cube_map_positive_x_allocation), 658 workarounds.force_cube_map_positive_x_allocation),
659 force_cube_complete(workarounds.force_cube_complete), 659 force_cube_complete(workarounds.force_cube_complete),
660 unpack_alignment_workaround_with_unpack_buffer( 660 unpack_alignment_workaround_with_unpack_buffer(
661 workarounds.unpack_alignment_workaround_with_unpack_buffer) {} 661 workarounds.unpack_alignment_workaround_with_unpack_buffer) {}
662 662
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
1149 private: 1149 private:
1150 DecoderTextureState* texture_state_; 1150 DecoderTextureState* texture_state_;
1151 base::TimeTicks begin_time_; 1151 base::TimeTicks begin_time_;
1152 DISALLOW_COPY_AND_ASSIGN(ScopedTextureUploadTimer); 1152 DISALLOW_COPY_AND_ASSIGN(ScopedTextureUploadTimer);
1153 }; 1153 };
1154 1154
1155 } // namespace gles2 1155 } // namespace gles2
1156 } // namespace gpu 1156 } // namespace gpu
1157 1157
1158 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ 1158 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/in_process_command_buffer.cc ('k') | gpu/command_buffer/service/texture_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698