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

Unified Diff: content/browser/gpu/gpu_data_manager_impl.cc

Issue 12593005: Add a user pref in Settings to disable all GPU features. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl.h ('k') | content/browser/gpu/gpu_data_manager_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_data_manager_impl.cc
===================================================================
--- content/browser/gpu/gpu_data_manager_impl.cc (revision 186737)
+++ content/browser/gpu/gpu_data_manager_impl.cc (working copy)
@@ -496,7 +496,7 @@
return gpu_switching_;
}
-void GpuDataManagerImpl::BlacklistCard() {
+void GpuDataManagerImpl::DisableHardwareAcceleration() {
card_blacklisted_ = true;
blacklisted_features_ = GPU_FEATURE_TYPE_ALL;
@@ -608,7 +608,7 @@
command_line->AppendSwitch(switches::kDisableAcceleratedLayers);
}
if (command_line->HasSwitch(switches::kDisableGpu))
- BlacklistCard();
+ DisableHardwareAcceleration();
if (command_line->HasSwitch(switches::kGpuSwitching)) {
std::string option_string = command_line->GetSwitchValueASCII(
switches::kGpuSwitching);
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl.h ('k') | content/browser/gpu/gpu_data_manager_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698