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

Unified Diff: chrome/browser/chromeos/login/chrome_restart_request.cc

Issue 172763002: Revert of cc: Remove the --enable-partial-swap flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 | « cc/base/switches.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/chrome_restart_request.cc
diff --git a/chrome/browser/chromeos/login/chrome_restart_request.cc b/chrome/browser/chromeos/login/chrome_restart_request.cc
index 33990fec8a4505c4f3435be470118899bd9656f3..486125e34209f654aad8bcaf2204609f4e3382fd 100644
--- a/chrome/browser/chromeos/login/chrome_restart_request.cc
+++ b/chrome/browser/chromeos/login/chrome_restart_request.cc
@@ -179,6 +179,7 @@
cc::switches::kEnableGPURasterization,
cc::switches::kEnableImplSidePainting,
cc::switches::kEnableMapImage,
+ cc::switches::kEnablePartialSwap,
cc::switches::kEnablePerTilePainting,
cc::switches::kEnablePinchVirtualViewport,
cc::switches::kEnableTopControlsPositionCalculation,
@@ -238,6 +239,15 @@
::switches::kRegisterPepperPlugins).c_str());
}
+ // TODO(zelidrag): Remove this hack that get us around compositing bug from
+ // http://crbug.com/179256 once that bug is resolved.
+ if (command_line->HasSwitch(::switches::kForceAppMode)) {
+ std::string switch_to_remove("--");
+ switch_to_remove.append(cc::switches::kEnablePartialSwap);
+ cmd_line_str = cmd_line_str.replace(cmd_line_str.find(switch_to_remove),
+ switch_to_remove.length(), "");
+ }
+
return cmd_line_str;
}
« no previous file with comments | « cc/base/switches.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698