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

Unified Diff: content/gpu/in_process_gpu_thread.cc

Issue 987693005: Get rid of ChannelInit::SetSingleProcessIOTaskRunner() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Landing Created 5 years, 9 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/gpu/in_process_gpu_thread.h ('k') | content/renderer/in_process_renderer_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/in_process_gpu_thread.cc
diff --git a/content/gpu/in_process_gpu_thread.cc b/content/gpu/in_process_gpu_thread.cc
index 8a7818d6e195fd229b4d908ccdcf614f8aba55f5..dfd9d358e5fe7575dc60b8079dcd66e54d5113eb 100644
--- a/content/gpu/in_process_gpu_thread.cc
+++ b/content/gpu/in_process_gpu_thread.cc
@@ -9,9 +9,9 @@
namespace content {
-InProcessGpuThread::InProcessGpuThread(const std::string& channel_id)
+InProcessGpuThread::InProcessGpuThread(const InProcessChildThreadParams& params)
: base::Thread("Chrome_InProcGpuThread"),
- channel_id_(channel_id),
+ params_(params),
gpu_process_(NULL) {
}
@@ -23,7 +23,7 @@ void InProcessGpuThread::Init() {
gpu_process_ = new GpuProcess();
// The process object takes ownership of the thread object, so do not
// save and delete the pointer.
- gpu_process_->set_main_thread(new GpuChildThread(channel_id_));
+ gpu_process_->set_main_thread(new GpuChildThread(params_));
}
void InProcessGpuThread::CleanUp() {
@@ -31,8 +31,9 @@ void InProcessGpuThread::CleanUp() {
delete gpu_process_;
}
-base::Thread* CreateInProcessGpuThread(const std::string& channel_id) {
- return new InProcessGpuThread(channel_id);
+base::Thread* CreateInProcessGpuThread(
+ const InProcessChildThreadParams& params) {
+ return new InProcessGpuThread(params);
}
} // namespace content
« no previous file with comments | « content/gpu/in_process_gpu_thread.h ('k') | content/renderer/in_process_renderer_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698