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

Side by Side Diff: content/browser/gpu/gpu_data_manager.h

Issue 8383008: Add a command-line switch --skip-gpu-data-loading. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « chrome/test/base/test_launcher_utils.cc ('k') | content/browser/gpu/gpu_data_manager.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_H_
6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_H_ 6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 } 133 }
134 134
135 bool disable_experimental_webgl() const { 135 bool disable_experimental_webgl() const {
136 return disable_experimental_webgl_; 136 return disable_experimental_webgl_;
137 } 137 }
138 138
139 bool disable_gl_multisampling() const { return disable_gl_multisampling_; } 139 bool disable_gl_multisampling() const { return disable_gl_multisampling_; }
140 140
141 bool ignore_gpu_blacklist() const { return ignore_gpu_blacklist_; } 141 bool ignore_gpu_blacklist() const { return ignore_gpu_blacklist_; }
142 142
143 bool skip_gpu_data_loading() const { return skip_gpu_data_loading_; }
144
143 const std::string& use_gl() const { return use_gl_; } 145 const std::string& use_gl() const { return use_gl_; }
144 146
145 private: 147 private:
146 // Manage the correlations between switches. 148 // Manage the correlations between switches.
147 void ApplyPolicies(); 149 void ApplyPolicies();
148 150
149 bool disable_accelerated_2d_canvas_; 151 bool disable_accelerated_2d_canvas_;
150 bool disable_accelerated_compositing_; 152 bool disable_accelerated_compositing_;
151 bool disable_accelerated_layers_; 153 bool disable_accelerated_layers_;
152 bool disable_experimental_webgl_; 154 bool disable_experimental_webgl_;
153 bool disable_gl_multisampling_; 155 bool disable_gl_multisampling_;
154 156
155 bool ignore_gpu_blacklist_; 157 bool ignore_gpu_blacklist_;
158 bool skip_gpu_data_loading_;
156 159
157 std::string use_gl_; 160 std::string use_gl_;
158 }; 161 };
159 162
160 friend struct DefaultSingletonTraits<GpuDataManager>; 163 friend struct DefaultSingletonTraits<GpuDataManager>;
161 164
162 GpuDataManager(); 165 GpuDataManager();
163 virtual ~GpuDataManager(); 166 virtual ~GpuDataManager();
164 167
165 void Initialize(); 168 void Initialize();
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 std::set<Callback0::Type*> gpu_info_update_callbacks_; 210 std::set<Callback0::Type*> gpu_info_update_callbacks_;
208 211
209 ListValue log_messages_; 212 ListValue log_messages_;
210 213
211 DISALLOW_COPY_AND_ASSIGN(GpuDataManager); 214 DISALLOW_COPY_AND_ASSIGN(GpuDataManager);
212 }; 215 };
213 216
214 DISABLE_RUNNABLE_METHOD_REFCOUNT(GpuDataManager); 217 DISABLE_RUNNABLE_METHOD_REFCOUNT(GpuDataManager);
215 218
216 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_H_ 219 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/test/base/test_launcher_utils.cc ('k') | content/browser/gpu/gpu_data_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698