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

Side by Side Diff: cc/test/task_graph_runner_test_template.h

Issue 1866043006: cc: Remove ScheduleOnOriginThread() and CompleteOnOriginThread(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 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
« no previous file with comments | « cc/test/fake_tile_task_manager.cc ('k') | cc/tiles/gpu_image_decode_controller.h » ('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 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 #ifndef CC_TEST_TASK_GRAPH_RUNNER_TEST_TEMPLATE_H_ 5 #ifndef CC_TEST_TASK_GRAPH_RUNNER_TEST_TEMPLATE_H_
6 #define CC_TEST_TASK_GRAPH_RUNNER_TEST_TEMPLATE_H_ 6 #define CC_TEST_TASK_GRAPH_RUNNER_TEST_TEMPLATE_H_
7 7
8 #include "cc/raster/task_graph_runner.h" 8 #include "cc/raster/task_graph_runner.h"
9 9
10 #include <vector> 10 #include <vector>
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 protected: 57 protected:
58 class FakeTaskImpl : public Task { 58 class FakeTaskImpl : public Task {
59 public: 59 public:
60 FakeTaskImpl(TaskGraphRunnerTestBase* test, int namespace_index, int id) 60 FakeTaskImpl(TaskGraphRunnerTestBase* test, int namespace_index, int id)
61 : test_(test), namespace_index_(namespace_index), id_(id) {} 61 : test_(test), namespace_index_(namespace_index), id_(id) {}
62 62
63 // Overridden from Task: 63 // Overridden from Task:
64 void RunOnWorkerThread() override; 64 void RunOnWorkerThread() override;
65 65
66 // TODO(prashant.n): Rename this function to OnTaskCompleted() to make it
67 // analogous with tile task. crbug.com/599863.
66 virtual void CompleteOnOriginThread(); 68 virtual void CompleteOnOriginThread();
67 69
68 protected: 70 protected:
69 ~FakeTaskImpl() override {} 71 ~FakeTaskImpl() override {}
70 72
71 private: 73 private:
72 TaskGraphRunnerTestBase* test_; 74 TaskGraphRunnerTestBase* test_;
73 int namespace_index_; 75 int namespace_index_;
74 int id_; 76 int id_;
75 77
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 EXPECT_EQ(1u, this->on_task_completed_ids(i)[0]); 293 EXPECT_EQ(1u, this->on_task_completed_ids(i)[0]);
292 EXPECT_EQ(0u, this->on_task_completed_ids(i)[1]); 294 EXPECT_EQ(0u, this->on_task_completed_ids(i)[1]);
293 } 295 }
294 } 296 }
295 297
296 REGISTER_TYPED_TEST_CASE_P(SingleThreadTaskGraphRunnerTest, Priority); 298 REGISTER_TYPED_TEST_CASE_P(SingleThreadTaskGraphRunnerTest, Priority);
297 299
298 } // namespace cc 300 } // namespace cc
299 301
300 #endif // CC_TEST_TASK_GRAPH_RUNNER_TEST_TEMPLATE_H_ 302 #endif // CC_TEST_TASK_GRAPH_RUNNER_TEST_TEMPLATE_H_
OLDNEW
« no previous file with comments | « cc/test/fake_tile_task_manager.cc ('k') | cc/tiles/gpu_image_decode_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698