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

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

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/common/capabilities.cc ('k') | gpu/command_buffer/service/feature_info.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 #ifndef GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 #define GPU_OP(type, name) bool name; 87 #define GPU_OP(type, name) bool name;
88 GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP) 88 GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP)
89 #undef GPU_OP 89 #undef GPU_OP
90 90
91 // Note: 0 here means use driver limit. 91 // Note: 0 here means use driver limit.
92 GLint max_texture_size; 92 GLint max_texture_size;
93 GLint max_cube_map_texture_size; 93 GLint max_cube_map_texture_size;
94 GLint max_fragment_uniform_vectors; 94 GLint max_fragment_uniform_vectors;
95 GLint max_varying_vectors; 95 GLint max_varying_vectors;
96 GLint max_vertex_uniform_vectors; 96 GLint max_vertex_uniform_vectors;
97 GLint max_copy_texture_chromium_size;
97 }; 98 };
98 99
99 // Constructor with workarounds taken from the current process's CommandLine 100 // Constructor with workarounds taken from the current process's CommandLine
100 FeatureInfo(); 101 FeatureInfo();
101 102
102 // Constructor with workarounds taken from |command_line| 103 // Constructor with workarounds taken from |command_line|
103 FeatureInfo(const base::CommandLine& command_line); 104 FeatureInfo(const base::CommandLine& command_line);
104 105
105 // Initializes the feature information. Needs a current GL context. 106 // Initializes the feature information. Needs a current GL context.
106 bool Initialize(); 107 bool Initialize();
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 165
165 scoped_ptr<gfx::GLVersionInfo> gl_version_info_; 166 scoped_ptr<gfx::GLVersionInfo> gl_version_info_;
166 167
167 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); 168 DISALLOW_COPY_AND_ASSIGN(FeatureInfo);
168 }; 169 };
169 170
170 } // namespace gles2 171 } // namespace gles2
171 } // namespace gpu 172 } // namespace gpu
172 173
173 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ 174 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/capabilities.cc ('k') | gpu/command_buffer/service/feature_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698