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

Side by Side Diff: gpu/command_buffer/service/feature_info.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
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/feature_info.h" 5 #include "gpu/command_buffer/service/feature_info.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 workarounds->max_cube_map_texture_size = 1024; 107 workarounds->max_cube_map_texture_size = 1024;
108 if (workarounds->max_cube_map_texture_size_limit_512) 108 if (workarounds->max_cube_map_texture_size_limit_512)
109 workarounds->max_cube_map_texture_size = 512; 109 workarounds->max_cube_map_texture_size = 512;
110 110
111 if (workarounds->max_fragment_uniform_vectors_32) 111 if (workarounds->max_fragment_uniform_vectors_32)
112 workarounds->max_fragment_uniform_vectors = 32; 112 workarounds->max_fragment_uniform_vectors = 32;
113 if (workarounds->max_varying_vectors_16) 113 if (workarounds->max_varying_vectors_16)
114 workarounds->max_varying_vectors = 16; 114 workarounds->max_varying_vectors = 16;
115 if (workarounds->max_vertex_uniform_vectors_256) 115 if (workarounds->max_vertex_uniform_vectors_256)
116 workarounds->max_vertex_uniform_vectors = 256; 116 workarounds->max_vertex_uniform_vectors = 256;
117
118 if (workarounds->max_copy_texture_chromium_size_262144)
119 workarounds->max_copy_texture_chromium_size = 262144;
117 } 120 }
118 121
119 } // anonymous namespace. 122 } // anonymous namespace.
120 123
121 FeatureInfo::FeatureFlags::FeatureFlags() 124 FeatureInfo::FeatureFlags::FeatureFlags()
122 : chromium_color_buffer_float_rgba(false), 125 : chromium_color_buffer_float_rgba(false),
123 chromium_color_buffer_float_rgb(false), 126 chromium_color_buffer_float_rgb(false),
124 chromium_framebuffer_multisample(false), 127 chromium_framebuffer_multisample(false),
125 chromium_sync_query(false), 128 chromium_sync_query(false),
126 use_core_framebuffer_multisample(false), 129 use_core_framebuffer_multisample(false),
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 } 171 }
169 172
170 FeatureInfo::Workarounds::Workarounds() : 173 FeatureInfo::Workarounds::Workarounds() :
171 #define GPU_OP(type, name) name(false), 174 #define GPU_OP(type, name) name(false),
172 GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP) 175 GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP)
173 #undef GPU_OP 176 #undef GPU_OP
174 max_texture_size(0), 177 max_texture_size(0),
175 max_cube_map_texture_size(0), 178 max_cube_map_texture_size(0),
176 max_fragment_uniform_vectors(0), 179 max_fragment_uniform_vectors(0),
177 max_varying_vectors(0), 180 max_varying_vectors(0),
178 max_vertex_uniform_vectors(0) { 181 max_vertex_uniform_vectors(0),
182 max_copy_texture_chromium_size(0) {
179 } 183 }
180 184
181 FeatureInfo::FeatureInfo() { 185 FeatureInfo::FeatureInfo() {
182 InitializeBasicState(*base::CommandLine::ForCurrentProcess()); 186 InitializeBasicState(*base::CommandLine::ForCurrentProcess());
183 } 187 }
184 188
185 FeatureInfo::FeatureInfo(const base::CommandLine& command_line) { 189 FeatureInfo::FeatureInfo(const base::CommandLine& command_line) {
186 InitializeBasicState(command_line); 190 InitializeBasicState(command_line);
187 } 191 }
188 192
(...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after
1139 if (pos == std::string::npos) { 1143 if (pos == std::string::npos) {
1140 extensions_ += (extensions_.empty() ? "" : " ") + str; 1144 extensions_ += (extensions_.empty() ? "" : " ") + str;
1141 } 1145 }
1142 } 1146 }
1143 1147
1144 FeatureInfo::~FeatureInfo() { 1148 FeatureInfo::~FeatureInfo() {
1145 } 1149 }
1146 1150
1147 } // namespace gles2 1151 } // namespace gles2
1148 } // namespace gpu 1152 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/feature_info.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698