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

Side by Side Diff: components/scheduler/renderer/renderer_scheduler_impl.h

Issue 1411843008: Make blink platform time consistent with the timer virtual time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix CachingCorrectnessTest Created 5 years, 1 month 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 #ifndef COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_ 5 #ifndef COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_
6 #define COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_ 6 #define COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_
7 7
8 #include "base/atomicops.h" 8 #include "base/atomicops.h"
9 #include "base/synchronization/lock.h" 9 #include "base/synchronization/lock.h"
10 #include "components/scheduler/base/pollable_thread_safe_flag.h" 10 #include "components/scheduler/base/pollable_thread_safe_flag.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 bool IsHighPriorityWorkAnticipated() override; 63 bool IsHighPriorityWorkAnticipated() override;
64 bool ShouldYieldForHighPriorityWork() override; 64 bool ShouldYieldForHighPriorityWork() override;
65 bool CanExceedIdleDeadlineIfRequired() const override; 65 bool CanExceedIdleDeadlineIfRequired() const override;
66 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override; 66 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override;
67 void RemoveTaskObserver( 67 void RemoveTaskObserver(
68 base::MessageLoop::TaskObserver* task_observer) override; 68 base::MessageLoop::TaskObserver* task_observer) override;
69 void Shutdown() override; 69 void Shutdown() override;
70 void SuspendTimerQueue() override; 70 void SuspendTimerQueue() override;
71 void ResumeTimerQueue() override; 71 void ResumeTimerQueue() override;
72 void SetTimerQueueSuspensionWhenBackgroundedEnabled(bool enabled) override; 72 void SetTimerQueueSuspensionWhenBackgroundedEnabled(bool enabled) override;
73 double CurrentTimeSeconds() const override;
74 double MonotonicallyIncreasingTimeSeconds() const override;
73 75
74 // RenderWidgetSignals::Observer implementation: 76 // RenderWidgetSignals::Observer implementation:
75 void SetAllRenderWidgetsHidden(bool hidden) override; 77 void SetAllRenderWidgetsHidden(bool hidden) override;
76 void SetHasVisibleRenderWidgetWithTouchHandler( 78 void SetHasVisibleRenderWidgetWithTouchHandler(
77 bool has_visible_render_widget_with_touch_handler) override; 79 bool has_visible_render_widget_with_touch_handler) override;
78 80
79 // TaskQueueManager::Observer implementation: 81 // TaskQueueManager::Observer implementation:
80 void OnUnregisterTaskQueue(const scoped_refptr<TaskQueue>& queue) override; 82 void OnUnregisterTaskQueue(const scoped_refptr<TaskQueue>& queue) override;
81 83
82 // Test helpers. 84 // Test helpers.
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 341
340 PollableThreadSafeFlag policy_may_need_update_; 342 PollableThreadSafeFlag policy_may_need_update_;
341 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; 343 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_;
342 344
343 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); 345 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl);
344 }; 346 };
345 347
346 } // namespace scheduler 348 } // namespace scheduler
347 349
348 #endif // COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_ 350 #endif // COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_
OLDNEW
« no previous file with comments | « components/scheduler/renderer/renderer_scheduler.h ('k') | components/scheduler/renderer/renderer_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698