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

Unified Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 2489033002: content/blimp: Remove unused compositing mode switches. (Closed)
Patch Set: test 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 | « content/public/common/content_switches.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/render_widget_compositor.cc
diff --git a/content/renderer/gpu/render_widget_compositor.cc b/content/renderer/gpu/render_widget_compositor.cc
index faa1b9cb47952b934dee11d70bc4df5909570b81..1a0d790af134b6a904720ce803c7cb3e74f8f197 100644
--- a/content/renderer/gpu/render_widget_compositor.cc
+++ b/content/renderer/gpu/render_widget_compositor.cc
@@ -241,8 +241,7 @@ void RenderWidgetCompositor::Initialize(float device_scale_factor) {
animation_host_ = cc::AnimationHost::CreateMainInstance();
- if (cmd->HasSwitch(switches::kUseRemoteCompositing) &&
- cmd->HasSwitch(switches::kUseLayerTreeHostRemote)) {
+ if (cmd->HasSwitch(switches::kUseRemoteCompositing)) {
DCHECK(!threaded_);
cc::LayerTreeHostRemote::InitParams params;
@@ -258,31 +257,24 @@ void RenderWidgetCompositor::Initialize(float device_scale_factor) {
->CreateEnginePictureCache();
params.settings = &settings;
layer_tree_host_ = base::MakeUnique<cc::LayerTreeHostRemote>(&params);
- return;
- }
-
- cc::LayerTreeHostInProcess::InitParams params;
- params.client = this;
- params.settings = &settings;
- params.task_graph_runner = compositor_deps_->GetTaskGraphRunner();
- params.main_task_runner =
- compositor_deps_->GetCompositorMainThreadTaskRunner();
- params.mutator_host = animation_host_.get();
-
- if (cmd->HasSwitch(switches::kUseRemoteCompositing)) {
- DCHECK(!threaded_);
- params.image_serialization_processor =
- compositor_deps_->GetImageSerializationProcessor();
- layer_tree_host_ =
- cc::LayerTreeHostInProcess::CreateRemoteServer(this, &params);
- } else if (!threaded_) {
- // Single-threaded layout tests.
- layer_tree_host_ =
- cc::LayerTreeHostInProcess::CreateSingleThreaded(this, &params);
} else {
- layer_tree_host_ = cc::LayerTreeHostInProcess::CreateThreaded(
- compositor_deps_->GetCompositorImplThreadTaskRunner(), &params);
+ cc::LayerTreeHostInProcess::InitParams params;
+ params.client = this;
+ params.settings = &settings;
+ params.task_graph_runner = compositor_deps_->GetTaskGraphRunner();
+ params.main_task_runner =
+ compositor_deps_->GetCompositorMainThreadTaskRunner();
+ params.mutator_host = animation_host_.get();
+ if (!threaded_) {
+ // Single-threaded layout tests.
+ layer_tree_host_ =
+ cc::LayerTreeHostInProcess::CreateSingleThreaded(this, &params);
+ } else {
+ layer_tree_host_ = cc::LayerTreeHostInProcess::CreateThreaded(
+ compositor_deps_->GetCompositorImplThreadTaskRunner(), &params);
+ }
}
+
DCHECK(layer_tree_host_);
}
« no previous file with comments | « content/public/common/content_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698