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

Unified Diff: blimp/client/core/context/blimp_client_context_impl.cc

Issue 2476873002: blimp: Enable the updated compositing path by default. (Closed)
Patch Set: .. Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | blimp/engine/app/blimp_engine_config.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/client/core/context/blimp_client_context_impl.cc
diff --git a/blimp/client/core/context/blimp_client_context_impl.cc b/blimp/client/core/context/blimp_client_context_impl.cc
index 7277f1ab6521bbcc13cd7e4189d3f7cfadf3c126..9ffe8d37e16e4438120b3f7d0420881788e26112 100644
--- a/blimp/client/core/context/blimp_client_context_impl.cc
+++ b/blimp/client/core/context/blimp_client_context_impl.cc
@@ -49,6 +49,11 @@ void DropConnectionOnIOThread(ClientNetworkComponents* net_components) {
net_components->GetBrowserConnectionHandler()->DropCurrentConnection();
}
+void AppendDefaultCommandLineFlags(base::CommandLine* command_line) {
+ // Enables the updated compositing path before any tabs are created.
+ command_line->AppendSwitch(switches::kEnableUpdatedCompositingPath);
+}
+
} // namespace
// This function is declared in //blimp/client/public/blimp_client_context.h,
@@ -139,6 +144,8 @@ BlimpClientContextImpl::BlimpClientContextImpl(
FROM_HERE, base::Bind(&ClientNetworkComponents::Initialize,
base::Unretained(net_components_.get())));
+ AppendDefaultCommandLineFlags(base::CommandLine::ForCurrentProcess());
+
UMA_HISTOGRAM_BOOLEAN("Blimp.Supported", true);
}
« no previous file with comments | « no previous file | blimp/engine/app/blimp_engine_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698