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

Unified Diff: content/browser/android/synchronous_compositor_base.cc

Issue 1838853005: android: Remove in-process sync compositor code path (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_in_proc_video
Patch Set: rebase Created 4 years, 8 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
Index: content/browser/android/synchronous_compositor_base.cc
diff --git a/content/browser/android/synchronous_compositor_base.cc b/content/browser/android/synchronous_compositor_base.cc
index 967b871ea2a28951d7e24548af8923ebe8f36e12..704018edbb65f70e9440ead9f40ce9133f250d59 100644
--- a/content/browser/android/synchronous_compositor_base.cc
+++ b/content/browser/android/synchronous_compositor_base.cc
@@ -7,7 +7,6 @@
#include "base/command_line.h"
#include "base/memory/ptr_util.h"
#include "base/supports_user_data.h"
-#include "content/browser/android/in_process/synchronous_compositor_impl.h"
#include "content/browser/android/synchronous_compositor_host.h"
#include "content/browser/gpu/gpu_process_host.h"
#include "content/browser/web_contents/web_contents_android.h"
@@ -65,17 +64,13 @@ std::unique_ptr<SynchronousCompositorBase> SynchronousCompositorBase::Create(
return nullptr; // Not using sync compositing.
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
- if (command_line->HasSwitch(switches::kIPCSyncCompositing)) {
- bool async_input =
- !command_line->HasSwitch(switches::kSyncInputForSyncCompositor);
- bool use_in_proc_software_draw =
- command_line->HasSwitch(switches::kSingleProcess);
- return base::WrapUnique(new SynchronousCompositorHost(
- rwhva, web_contents_android->synchronous_compositor_client(),
- async_input, use_in_proc_software_draw));
- }
- return base::WrapUnique(new SynchronousCompositorImpl(
- rwhva, web_contents_android->synchronous_compositor_client()));
+ bool async_input =
+ !command_line->HasSwitch(switches::kSyncInputForSyncCompositor);
+ bool use_in_proc_software_draw =
+ command_line->HasSwitch(switches::kSingleProcess);
+ return base::WrapUnique(new SynchronousCompositorHost(
+ rwhva, web_contents_android->synchronous_compositor_client(), async_input,
+ use_in_proc_software_draw));
}
} // namespace content
« no previous file with comments | « content/browser/android/synchronous_compositor_base.h ('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