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

Side by Side Diff: components/view_manager/gles2/raster_thread_helper.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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/view_manager/gles2/raster_thread_helper.h" 5 #include "components/view_manager/gles2/raster_thread_helper.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/threading/simple_thread.h" 8 #include "base/threading/simple_thread.h"
9 #include "cc/raster/task_graph_runner.h" 9 #include "cc/raster/task_graph_runner.h"
10 10
11 namespace gles2 { 11 namespace gles2 {
12 12
13 class RasterThreadHelper::RasterThread : public base::SimpleThread { 13 class RasterThreadHelper::RasterThread : public base::SimpleThread {
14 public: 14 public:
15 RasterThread(cc::TaskGraphRunner* task_graph_runner) 15 RasterThread(cc::TaskGraphRunner* task_graph_runner)
16 : base::SimpleThread("CompositorTileWorker1"), 16 : base::SimpleThread("Worker1"), task_graph_runner_(task_graph_runner) {}
17 task_graph_runner_(task_graph_runner) {}
18 17
19 // Overridden from base::SimpleThread: 18 // Overridden from base::SimpleThread:
20 void Run() override { task_graph_runner_->Run(); } 19 void Run() override { task_graph_runner_->Run(); }
21 20
22 private: 21 private:
23 cc::TaskGraphRunner* task_graph_runner_; 22 cc::TaskGraphRunner* task_graph_runner_;
24 23
25 DISALLOW_COPY_AND_ASSIGN(RasterThread); 24 DISALLOW_COPY_AND_ASSIGN(RasterThread);
26 }; 25 };
27 26
28 RasterThreadHelper::RasterThreadHelper() 27 RasterThreadHelper::RasterThreadHelper()
29 : task_graph_runner_(new cc::TaskGraphRunner), 28 : task_graph_runner_(new cc::TaskGraphRunner),
30 raster_thread_(new RasterThread(task_graph_runner_.get())) { 29 raster_thread_(new RasterThread(task_graph_runner_.get())) {
31 raster_thread_->Start(); 30 raster_thread_->Start();
32 } 31 }
33 32
34 RasterThreadHelper::~RasterThreadHelper() { 33 RasterThreadHelper::~RasterThreadHelper() {
35 task_graph_runner_->Shutdown(); 34 task_graph_runner_->Shutdown();
36 raster_thread_->Join(); 35 raster_thread_->Join();
37 } 36 }
38 37
39 } // namespace gles2 38 } // namespace gles2
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/chrome_restart_request.cc ('k') | content/browser/compositor/gpu_process_transport_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698