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

Side by Side Diff: content/gpu/in_process_gpu_thread.cc

Issue 23452016: Fix names of in-process threads, tidy gpu DEPS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: deps for webview Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « content/gpu/in_process_gpu_thread.h ('k') | content/public/test/content_test_suite_base.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/gpu/gpu_main_thread.h" 5 #include "content/gpu/in_process_gpu_thread.h"
6 6
7 #include "content/gpu/gpu_child_thread.h" 7 #include "content/gpu/gpu_child_thread.h"
8 #include "content/gpu/gpu_process.h" 8 #include "content/gpu/gpu_process.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 GpuMainThread::GpuMainThread(const std::string& channel_id) 12 InProcessGpuThread::InProcessGpuThread(const std::string& channel_id)
13 : base::Thread("Chrome_InProcGpuThread"), 13 : base::Thread("Chrome_InProcGpuThread"),
14 channel_id_(channel_id), 14 channel_id_(channel_id),
15 gpu_process_(NULL) { 15 gpu_process_(NULL) {
16 } 16 }
17 17
18 GpuMainThread::~GpuMainThread() { 18 InProcessGpuThread::~InProcessGpuThread() {
19 Stop(); 19 Stop();
20 } 20 }
21 21
22 void GpuMainThread::Init() { 22 void InProcessGpuThread::Init() {
23 gpu_process_ = new GpuProcess(); 23 gpu_process_ = new GpuProcess();
24 // The process object takes ownership of the thread object, so do not 24 // The process object takes ownership of the thread object, so do not
25 // save and delete the pointer. 25 // save and delete the pointer.
26 gpu_process_->set_main_thread(new GpuChildThread(channel_id_)); 26 gpu_process_->set_main_thread(new GpuChildThread(channel_id_));
27 } 27 }
28 28
29 void GpuMainThread::CleanUp() { 29 void InProcessGpuThread::CleanUp() {
30 delete gpu_process_; 30 delete gpu_process_;
31 } 31 }
32 32
33 base::Thread* CreateGpuMainThread(const std::string& channel_id) { 33 base::Thread* CreateInProcessGpuThread(const std::string& channel_id) {
34 return new GpuMainThread(channel_id); 34 return new InProcessGpuThread(channel_id);
35 } 35 }
36 36
37 } // namespace content 37 } // namespace content
OLDNEW
« no previous file with comments | « content/gpu/in_process_gpu_thread.h ('k') | content/public/test/content_test_suite_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698