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

Side by Side Diff: third_party/WebKit/Source/platform/scheduler/base/time_domain.h

Issue 2915993003: Revert of [scheduler] Change TaskQueue observer call mechanism. (Closed)
Patch Set: Created 3 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
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 THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TIME_DOMAIN_H_ 5 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TIME_DOMAIN_H_
6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TIME_DOMAIN_H_ 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TIME_DOMAIN_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 void SetHeapHandle(HeapHandle handle) { 129 void SetHeapHandle(HeapHandle handle) {
130 DCHECK(handle.IsValid()); 130 DCHECK(handle.IsValid());
131 queue->set_heap_handle(handle); 131 queue->set_heap_handle(handle);
132 } 132 }
133 133
134 void ClearHeapHandle() { 134 void ClearHeapHandle() {
135 DCHECK(queue->heap_handle().IsValid()); 135 DCHECK(queue->heap_handle().IsValid());
136 queue->set_heap_handle(HeapHandle()); 136 queue->set_heap_handle(HeapHandle());
137 137
138 DCHECK(queue->scheduled_time_domain_wake_up()); 138 DCHECK_NE(queue->scheduled_time_domain_wake_up(), base::TimeTicks());
139 queue->SetScheduledTimeDomainWakeUp(base::nullopt); 139 queue->set_scheduled_time_domain_wake_up(base::TimeTicks());
140 } 140 }
141 }; 141 };
142 142
143 IntrusiveHeap<ScheduledDelayedWakeUp> delayed_wake_up_queue_; 143 IntrusiveHeap<ScheduledDelayedWakeUp> delayed_wake_up_queue_;
144 144
145 base::ThreadChecker main_thread_checker_; 145 base::ThreadChecker main_thread_checker_;
146 146
147 DISALLOW_COPY_AND_ASSIGN(TimeDomain); 147 DISALLOW_COPY_AND_ASSIGN(TimeDomain);
148 }; 148 };
149 149
150 } // namespace scheduler 150 } // namespace scheduler
151 } // namespace blink 151 } // namespace blink
152 152
153 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TIME_DOMAIN_H_ 153 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TIME_DOMAIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698