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

Side by Side Diff: content/browser/browser_main_loop.cc

Issue 2227293002: Add RAIL tracing category to Chrome tracing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add missing PaintTiming markers 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 unified diff | Download patch
« no previous file with comments | « content/app/content_main_runner.cc ('k') | content/browser/frame_host/navigator_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/browser_main_loop.h" 5 #include "content/browser/browser_main_loop.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 // previous call for async startup, so we call RunAllTasksNow() 819 // previous call for async startup, so we call RunAllTasksNow()
820 // unconditionally. 820 // unconditionally.
821 startup_task_runner_->RunAllTasksNow(); 821 startup_task_runner_->RunAllTasksNow();
822 } 822 }
823 #else 823 #else
824 startup_task_runner_->RunAllTasksNow(); 824 startup_task_runner_->RunAllTasksNow();
825 #endif 825 #endif
826 } 826 }
827 827
828 int BrowserMainLoop::CreateThreads() { 828 int BrowserMainLoop::CreateThreads() {
829 TRACE_EVENT0("startup", "BrowserMainLoop::CreateThreads"); 829 TRACE_EVENT0("startup,rail", "BrowserMainLoop::CreateThreads");
830 830
831 base::Thread::Options io_message_loop_options; 831 base::Thread::Options io_message_loop_options;
832 io_message_loop_options.message_loop_type = base::MessageLoop::TYPE_IO; 832 io_message_loop_options.message_loop_type = base::MessageLoop::TYPE_IO;
833 base::Thread::Options ui_message_loop_options; 833 base::Thread::Options ui_message_loop_options;
834 ui_message_loop_options.message_loop_type = base::MessageLoop::TYPE_UI; 834 ui_message_loop_options.message_loop_type = base::MessageLoop::TYPE_UI;
835 835
836 // Start threads in the order they occur in the BrowserThread::ID 836 // Start threads in the order they occur in the BrowserThread::ID
837 // enumeration, except for BrowserThread::UI which is the main 837 // enumeration, except for BrowserThread::UI which is the main
838 // thread. 838 // thread.
839 // 839 //
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after
1526 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner = 1526 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner =
1527 audio_thread_->task_runner(); 1527 audio_thread_->task_runner();
1528 audio_manager_ = media::AudioManager::Create(std::move(audio_task_runner), 1528 audio_manager_ = media::AudioManager::Create(std::move(audio_task_runner),
1529 std::move(worker_task_runner), 1529 std::move(worker_task_runner),
1530 MediaInternals::GetInstance()); 1530 MediaInternals::GetInstance());
1531 } 1531 }
1532 CHECK(audio_manager_); 1532 CHECK(audio_manager_);
1533 } 1533 }
1534 1534
1535 } // namespace content 1535 } // namespace content
OLDNEW
« no previous file with comments | « content/app/content_main_runner.cc ('k') | content/browser/frame_host/navigator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698