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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 686013002: content: Enable 1-copy rasterizer on all platforms but Android and MacOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: keep disable-zero-copy in histograms.xml Created 6 years, 2 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/public/common/content_switches.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index 7677ac58692a1cea119687e28f778c2ee8484364..c1cefaf169df2c12ec8d0424caf9063463398a95 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -493,10 +493,13 @@ void RenderThreadImpl::Init() {
cc_blink::WebLayerImpl::SetImplSidePaintingEnabled(
is_impl_side_painting_enabled_);
- is_zero_copy_enabled_ = command_line.HasSwitch(switches::kEnableZeroCopy) &&
- !command_line.HasSwitch(switches::kDisableZeroCopy);
+ is_zero_copy_enabled_ = command_line.HasSwitch(switches::kEnableZeroCopy);
+#if defined(OS_MACOSX) || defined(OS_ANDROID)
is_one_copy_enabled_ = command_line.HasSwitch(switches::kEnableOneCopy);
+#else
+ is_one_copy_enabled_ = !command_line.HasSwitch(switches::kDisableOneCopy);
+#endif
if (command_line.HasSwitch(switches::kDisableLCDText)) {
is_lcd_text_enabled_ = false;
« no previous file with comments | « content/public/common/content_switches.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698