Add 'did_proceed' and 'repeat_visit' to ClientMalwareReportRequest to track CTR.
[chromium-blink-merge.git] / components / mus / gles2 / raster_thread_helper.cc
blobdbd5696ab59673af43eaa71709561cb1438ddbab
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
3 // found in the LICENSE file.
5 #include "components/mus/gles2/raster_thread_helper.h"
7 #include "base/logging.h"
8 #include "base/threading/simple_thread.h"
9 #include "cc/raster/task_graph_runner.h"
11 namespace gles2 {
13 class RasterThreadHelper::RasterThread : public base::SimpleThread {
14 public:
15 RasterThread(cc::TaskGraphRunner* task_graph_runner)
16 : base::SimpleThread("CompositorTileWorker1"),
17 task_graph_runner_(task_graph_runner) {}
19 // Overridden from base::SimpleThread:
20 void Run() override { task_graph_runner_->Run(); }
22 private:
23 cc::TaskGraphRunner* task_graph_runner_;
25 DISALLOW_COPY_AND_ASSIGN(RasterThread);
28 RasterThreadHelper::RasterThreadHelper()
29 : task_graph_runner_(new cc::TaskGraphRunner),
30 raster_thread_(new RasterThread(task_graph_runner_.get())) {
31 raster_thread_->Start();
34 RasterThreadHelper::~RasterThreadHelper() {
35 task_graph_runner_->Shutdown();
36 raster_thread_->Join();
39 } // namespace gles2