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

Unified Diff: content/browser/compositor/gpu_process_transport_factory.cc

Issue 1192633003: content: Rename raster threads to worker threads. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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/browser/compositor/gpu_process_transport_factory.h ('k') | content/browser/gpu/compositor_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/compositor/gpu_process_transport_factory.cc
diff --git a/content/browser/compositor/gpu_process_transport_factory.cc b/content/browser/compositor/gpu_process_transport_factory.cc
index b0452111f31777c75aeba27583c4eb2175eb422b..cce44a34bb9f27329498da41ef3bcb0aa103c4bb 100644
--- a/content/browser/compositor/gpu_process_transport_factory.cc
+++ b/content/browser/compositor/gpu_process_transport_factory.cc
@@ -75,10 +75,10 @@ static const int kNumRetriesBeforeSoftwareFallback = 4;
namespace content {
namespace {
-class RasterThread : public base::SimpleThread {
+class WorkerThread : public base::SimpleThread {
public:
- RasterThread(cc::TaskGraphRunner* task_graph_runner)
- : base::SimpleThread("CompositorTileWorker1"),
+ WorkerThread(cc::TaskGraphRunner* task_graph_runner)
+ : base::SimpleThread("Browser Worker"),
task_graph_runner_(task_graph_runner) {}
// Overridden from base::SimpleThread:
@@ -87,7 +87,7 @@ class RasterThread : public base::SimpleThread {
private:
cc::TaskGraphRunner* task_graph_runner_;
- DISALLOW_COPY_AND_ASSIGN(RasterThread);
+ DISALLOW_COPY_AND_ASSIGN(WorkerThread);
};
} // namespace
@@ -110,8 +110,8 @@ GpuProcessTransportFactory::GpuProcessTransportFactory()
if (UseSurfacesEnabled())
surface_manager_ = make_scoped_ptr(new cc::SurfaceManager);
- raster_thread_.reset(new RasterThread(task_graph_runner_.get()));
- raster_thread_->Start();
+ worker_thread_.reset(new WorkerThread(task_graph_runner_.get()));
+ worker_thread_->Start();
#if defined(OS_WIN)
software_backing_.reset(new OutputDeviceBacking);
#endif
@@ -124,8 +124,8 @@ GpuProcessTransportFactory::~GpuProcessTransportFactory() {
callback_factory_.InvalidateWeakPtrs();
task_graph_runner_->Shutdown();
- if (raster_thread_)
- raster_thread_->Join();
+ if (worker_thread_)
+ worker_thread_->Join();
}
scoped_ptr<WebGraphicsContext3DCommandBufferImpl>
« no previous file with comments | « content/browser/compositor/gpu_process_transport_factory.h ('k') | content/browser/gpu/compositor_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698