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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder.cc

Issue 1159833002: content: Partial copy workaround for devices with known upload performance problems. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sort Created 5 years, 6 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
« no previous file with comments | « gpu/command_buffer/service/feature_info.cc ('k') | gpu/config/gpu_driver_bug_list_json.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
6 6
7 #include <stdio.h> 7 #include <stdio.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <cmath> 10 #include <cmath>
(...skipping 3109 matching lines...) Expand 10 before | Expand all | Expand 10 after
3120 #endif 3120 #endif
3121 3121
3122 caps.post_sub_buffer = supports_post_sub_buffer_; 3122 caps.post_sub_buffer = supports_post_sub_buffer_;
3123 caps.image = true; 3123 caps.image = true;
3124 3124
3125 caps.blend_equation_advanced = 3125 caps.blend_equation_advanced =
3126 feature_info_->feature_flags().blend_equation_advanced; 3126 feature_info_->feature_flags().blend_equation_advanced;
3127 caps.blend_equation_advanced_coherent = 3127 caps.blend_equation_advanced_coherent =
3128 feature_info_->feature_flags().blend_equation_advanced_coherent; 3128 feature_info_->feature_flags().blend_equation_advanced_coherent;
3129 caps.texture_rg = feature_info_->feature_flags().ext_texture_rg; 3129 caps.texture_rg = feature_info_->feature_flags().ext_texture_rg;
3130 caps.max_copy_texture_chromium_size =
3131 feature_info_->workarounds().max_copy_texture_chromium_size;
3130 return caps; 3132 return caps;
3131 } 3133 }
3132 3134
3133 void GLES2DecoderImpl::UpdateCapabilities() { 3135 void GLES2DecoderImpl::UpdateCapabilities() {
3134 util_.set_num_compressed_texture_formats( 3136 util_.set_num_compressed_texture_formats(
3135 validators_->compressed_texture_format.GetValues().size()); 3137 validators_->compressed_texture_format.GetValues().size());
3136 util_.set_num_shader_binary_formats( 3138 util_.set_num_shader_binary_formats(
3137 validators_->shader_binary_format.GetValues().size()); 3139 validators_->shader_binary_format.GetValues().size());
3138 } 3140 }
3139 3141
(...skipping 10284 matching lines...) Expand 10 before | Expand all | Expand 10 after
13424 } 13426 }
13425 } 13427 }
13426 13428
13427 // Include the auto-generated part of this file. We split this because it means 13429 // Include the auto-generated part of this file. We split this because it means
13428 // we can easily edit the non-auto generated parts right here in this file 13430 // we can easily edit the non-auto generated parts right here in this file
13429 // instead of having to edit some template or the code generator. 13431 // instead of having to edit some template or the code generator.
13430 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 13432 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
13431 13433
13432 } // namespace gles2 13434 } // namespace gles2
13433 } // namespace gpu 13435 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/feature_info.cc ('k') | gpu/config/gpu_driver_bug_list_json.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698