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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/in_process_gpu_thread.cc
diff --git a/content/gpu/gpu_main_thread.cc b/content/gpu/in_process_gpu_thread.cc
similarity index 65%
rename from content/gpu/gpu_main_thread.cc
rename to content/gpu/in_process_gpu_thread.cc
index 65fef13b3605b0793f4854feecbb7f5b933d8f03..59a257da8768d54f01652aa3cab6171603db746c 100644
--- a/content/gpu/gpu_main_thread.cc
+++ b/content/gpu/in_process_gpu_thread.cc
@@ -2,36 +2,36 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/gpu/gpu_main_thread.h"
+#include "content/gpu/in_process_gpu_thread.h"
#include "content/gpu/gpu_child_thread.h"
#include "content/gpu/gpu_process.h"
namespace content {
-GpuMainThread::GpuMainThread(const std::string& channel_id)
+InProcessGpuThread::InProcessGpuThread(const std::string& channel_id)
: base::Thread("Chrome_InProcGpuThread"),
channel_id_(channel_id),
gpu_process_(NULL) {
}
-GpuMainThread::~GpuMainThread() {
+InProcessGpuThread::~InProcessGpuThread() {
Stop();
}
-void GpuMainThread::Init() {
+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_));
}
-void GpuMainThread::CleanUp() {
+void InProcessGpuThread::CleanUp() {
delete gpu_process_;
}
-base::Thread* CreateGpuMainThread(const std::string& channel_id) {
- return new GpuMainThread(channel_id);
+base::Thread* CreateInProcessGpuThread(const std::string& channel_id) {
+ return new InProcessGpuThread(channel_id);
}
} // namespace content
« 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