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

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

Issue 140333006: cc: Move internal::Task::did_schedule_ to internal::WorkerPoolTask. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix cc_unittests Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « cc/resources/task_graph_runner.cc ('k') | cc/test/fake_tile_manager.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 #include "cc/resources/task_graph_runner.h" 5 #include "cc/resources/task_graph_runner.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "cc/base/completion_event.h" 10 #include "cc/base/completion_event.h"
(...skipping 10 matching lines...) Expand all
21 21
22 class PerfTaskImpl : public internal::Task { 22 class PerfTaskImpl : public internal::Task {
23 public: 23 public:
24 typedef std::vector<scoped_refptr<PerfTaskImpl> > Vector; 24 typedef std::vector<scoped_refptr<PerfTaskImpl> > Vector;
25 25
26 PerfTaskImpl() {} 26 PerfTaskImpl() {}
27 27
28 // Overridden from internal::Task: 28 // Overridden from internal::Task:
29 virtual void RunOnWorkerThread(unsigned thread_index) OVERRIDE {} 29 virtual void RunOnWorkerThread(unsigned thread_index) OVERRIDE {}
30 30
31 void Reset() { 31 void Reset() { did_run_ = false; }
32 did_schedule_ = false;
33 did_run_ = false;
34 }
35 32
36 private: 33 private:
37 virtual ~PerfTaskImpl() {} 34 virtual ~PerfTaskImpl() {}
38 35
39 DISALLOW_COPY_AND_ASSIGN(PerfTaskImpl); 36 DISALLOW_COPY_AND_ASSIGN(PerfTaskImpl);
40 }; 37 };
41 38
42 class TaskGraphRunnerPerfTest : public testing::Test { 39 class TaskGraphRunnerPerfTest : public testing::Test {
43 public: 40 public:
44 TaskGraphRunnerPerfTest() 41 TaskGraphRunnerPerfTest()
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 RunScheduleAndExecuteTasksTest("0_1_0", 0, 1, 0); 302 RunScheduleAndExecuteTasksTest("0_1_0", 0, 1, 0);
306 RunScheduleAndExecuteTasksTest("0_32_0", 0, 32, 0); 303 RunScheduleAndExecuteTasksTest("0_32_0", 0, 32, 0);
307 RunScheduleAndExecuteTasksTest("2_1_0", 2, 1, 0); 304 RunScheduleAndExecuteTasksTest("2_1_0", 2, 1, 0);
308 RunScheduleAndExecuteTasksTest("2_32_0", 2, 32, 0); 305 RunScheduleAndExecuteTasksTest("2_32_0", 2, 32, 0);
309 RunScheduleAndExecuteTasksTest("2_1_1", 2, 1, 1); 306 RunScheduleAndExecuteTasksTest("2_1_1", 2, 1, 1);
310 RunScheduleAndExecuteTasksTest("2_32_1", 2, 32, 1); 307 RunScheduleAndExecuteTasksTest("2_32_1", 2, 32, 1);
311 } 308 }
312 309
313 } // namespace 310 } // namespace
314 } // namespace cc 311 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/task_graph_runner.cc ('k') | cc/test/fake_tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698