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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 2241083002: Revert of Always use an external begin frame source in the renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/renderer/gpu/render_widget_compositor.cc ('k') | no next file » | 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 712446fb112f8c8b8274d21ef04335c1f2cd1968..32814bb716a32d57ba8efb2df39280e879305ad8 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -1622,19 +1622,6 @@
std::unique_ptr<cc::BeginFrameSource>
RenderThreadImpl::CreateExternalBeginFrameSource(int routing_id) {
- const base::CommandLine* command_line =
- base::CommandLine::ForCurrentProcess();
-
- if (command_line->HasSwitch(switches::kUseRemoteCompositing) ||
- command_line->HasSwitch(switches::kIsRunningInMash) ||
- command_line->HasSwitch(cc::switches::kDisableBeginFrameScheduling)) {
- return base::WrapUnique(new cc::DelayBasedBeginFrameSource(
- base::MakeUnique<cc::DelayBasedTimeSource>(
- compositor_task_runner_
- ? compositor_task_runner_.get()
- : main_thread_compositor_task_runner_.get())));
- }
-
return base::WrapUnique(new CompositorExternalBeginFrameSource(
compositor_message_filter_.get(), sync_message_filter(), routing_id));
}
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698