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

Side by Side Diff: cc/raster/task_graph_runner_perftest.cc

Issue 1854723002: cc: Simplify task and its derived classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Corrected scope of dependencies. 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
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 #include <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 12 matching lines...) Expand all
23 static const int kWarmupRuns = 5; 23 static const int kWarmupRuns = 5;
24 static const int kTimeCheckInterval = 10; 24 static const int kTimeCheckInterval = 10;
25 25
26 class PerfTaskImpl : public Task { 26 class PerfTaskImpl : public Task {
27 public: 27 public:
28 typedef std::vector<scoped_refptr<PerfTaskImpl>> Vector; 28 typedef std::vector<scoped_refptr<PerfTaskImpl>> Vector;
29 29
30 PerfTaskImpl() {} 30 PerfTaskImpl() {}
31 31
32 // Overridden from Task: 32 // Overridden from Task:
33 void ScheduleOnOriginThread() override {}
34 void CompleteOnOriginThread() override {}
33 void RunOnWorkerThread() override {} 35 void RunOnWorkerThread() override {}
34 36
35 void Reset() { did_run_ = false; } 37 void Reset() { did_run_ = false; }
36 38
37 private: 39 private:
38 ~PerfTaskImpl() override {} 40 ~PerfTaskImpl() override {}
39 41
40 DISALLOW_COPY_AND_ASSIGN(PerfTaskImpl); 42 DISALLOW_COPY_AND_ASSIGN(PerfTaskImpl);
41 }; 43 };
42 44
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 RunScheduleAndExecuteTasksTest("0_1_0", 0, 1, 0); 310 RunScheduleAndExecuteTasksTest("0_1_0", 0, 1, 0);
309 RunScheduleAndExecuteTasksTest("0_32_0", 0, 32, 0); 311 RunScheduleAndExecuteTasksTest("0_32_0", 0, 32, 0);
310 RunScheduleAndExecuteTasksTest("2_1_0", 2, 1, 0); 312 RunScheduleAndExecuteTasksTest("2_1_0", 2, 1, 0);
311 RunScheduleAndExecuteTasksTest("2_32_0", 2, 32, 0); 313 RunScheduleAndExecuteTasksTest("2_32_0", 2, 32, 0);
312 RunScheduleAndExecuteTasksTest("2_1_1", 2, 1, 1); 314 RunScheduleAndExecuteTasksTest("2_1_1", 2, 1, 1);
313 RunScheduleAndExecuteTasksTest("2_32_1", 2, 32, 1); 315 RunScheduleAndExecuteTasksTest("2_32_1", 2, 32, 1);
314 } 316 }
315 317
316 } // namespace 318 } // namespace
317 } // namespace cc 319 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698