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

Side by Side Diff: cc/raster/task_graph_runner.h

Issue 1866203004: Convert //cc from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptrcc: rebase Created 4 years, 8 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
« no previous file with comments | « cc/raster/staging_buffer_pool.cc ('k') | cc/raster/task_graph_runner_perftest.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CC_RASTER_TASK_GRAPH_RUNNER_H_ 5 #ifndef CC_RASTER_TASK_GRAPH_RUNNER_H_
6 #define CC_RASTER_TASK_GRAPH_RUNNER_H_ 6 #define CC_RASTER_TASK_GRAPH_RUNNER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <algorithm> 11 #include <algorithm>
12 #include <map> 12 #include <map>
13 #include <memory>
13 #include <vector> 14 #include <vector>
14 15
15 #include "base/logging.h" 16 #include "base/logging.h"
16 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
17 #include "base/memory/scoped_ptr.h"
18 #include "cc/base/cc_export.h" 18 #include "cc/base/cc_export.h"
19 19
20 namespace cc { 20 namespace cc {
21 21
22 class TaskGraphRunner; 22 class TaskGraphRunner;
23 23
24 // A task which can be run by a TaskGraphRunner. To run a Task, it should be 24 // A task which can be run by a TaskGraphRunner. To run a Task, it should be
25 // inserted into a TaskGraph, which can then be scheduled on the 25 // inserted into a TaskGraph, which can then be scheduled on the
26 // TaskGraphRunner. 26 // TaskGraphRunner.
27 class CC_EXPORT Task : public base::RefCountedThreadSafe<Task> { 27 class CC_EXPORT Task : public base::RefCountedThreadSafe<Task> {
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 private: 217 private:
218 TaskGraph* graph_; 218 TaskGraph* graph_;
219 const Task* task_; 219 const Task* task_;
220 size_t current_index_; 220 size_t current_index_;
221 TaskGraph::Node* current_node_; 221 TaskGraph::Node* current_node_;
222 }; 222 };
223 223
224 } // namespace cc 224 } // namespace cc
225 225
226 #endif // CC_RASTER_TASK_GRAPH_RUNNER_H_ 226 #endif // CC_RASTER_TASK_GRAPH_RUNNER_H_
OLDNEW
« no previous file with comments | « cc/raster/staging_buffer_pool.cc ('k') | cc/raster/task_graph_runner_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698