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

Unified Diff: cc/raster/tile_task.cc

Issue 1866043006: cc: Remove ScheduleOnOriginThread() and CompleteOnOriginThread(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/raster/tile_task.h ('k') | cc/test/fake_tile_task_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/raster/tile_task.cc
diff --git a/cc/raster/tile_task.cc b/cc/raster/tile_task.cc
index 4010640a03c44ccae104e4a3c18baa3f58d4330b..87163164cf14ea01d54fc1d509b9c214aa8c11bc 100644
--- a/cc/raster/tile_task.cc
+++ b/cc/raster/tile_task.cc
@@ -9,48 +9,13 @@
namespace cc {
TileTask::TileTask(bool supports_concurrent_execution)
- : supports_concurrent_execution_(supports_concurrent_execution),
- did_schedule_(false),
- did_complete_(false) {}
+ : supports_concurrent_execution_(supports_concurrent_execution) {}
TileTask::TileTask(bool supports_concurrent_execution,
TileTask::Vector* dependencies)
: supports_concurrent_execution_(supports_concurrent_execution),
- dependencies_(std::move(*dependencies)),
- did_schedule_(false),
- did_complete_(false) {}
-
-TileTask::~TileTask() {
- DCHECK(!did_schedule_);
- DCHECK(!state().IsFinished() || did_complete_);
-}
-
-void TileTask::WillSchedule() {
- DCHECK(!did_schedule_);
-}
-
-void TileTask::DidSchedule() {
- did_schedule_ = true;
- did_complete_ = false;
-}
-
-bool TileTask::HasBeenScheduled() const {
- return did_schedule_;
-}
-
-void TileTask::WillComplete() {
- DCHECK(!did_complete_);
-}
-
-void TileTask::DidComplete() {
- DCHECK(did_schedule_);
- DCHECK(!did_complete_);
- did_schedule_ = false;
- did_complete_ = true;
-}
+ dependencies_(std::move(*dependencies)) {}
-bool TileTask::HasCompleted() const {
- return did_complete_;
-}
+TileTask::~TileTask() {}
} // namespace cc
« no previous file with comments | « cc/raster/tile_task.h ('k') | cc/test/fake_tile_task_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698