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

Unified Diff: sky/scheduler/timer.h

Issue 963513004: Delete sky/scheduler (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/scheduler/time_interval.cc ('k') | sky/scheduler/timer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/scheduler/timer.h
diff --git a/sky/scheduler/timer.h b/sky/scheduler/timer.h
deleted file mode 100644
index df20642c8be37e493e5c07e58b43f1719bb79587..0000000000000000000000000000000000000000
--- a/sky/scheduler/timer.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef SKY_SCHEDULER_TIMER_H_
-#define SKY_SCHEDULER_TIMER_H_
-
-#include "base/memory/weak_ptr.h"
-#include "base/single_thread_task_runner.h"
-#include "base/time/time.h"
-#include "sky/scheduler/time_interval.h"
-
-namespace sky {
-
-class Timer {
- public:
- class Client {
- public:
- virtual void OnTimerTick(base::TimeTicks now) = 0;
-
- protected:
- virtual ~Client();
- };
-
- Timer(Client* client,
- scoped_refptr<base::SingleThreadTaskRunner> task_runner);
- ~Timer();
-
- void SetInterval(const TimeInterval& parameters);
- void SetEnabled(bool enabled);
-
- private:
- base::TimeTicks NextTickTarget(base::TimeTicks now);
- void ScheduleNextTick(base::TimeTicks now);
- void PostTickTask(base::TimeTicks now, base::TimeTicks target);
- void OnTimerFired();
-
- Client* client_;
- scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
-
- TimeInterval interval_;
- base::TimeTicks last_tick_;
- base::TimeTicks current_target_;
-
- bool enabled_;
-
- base::WeakPtrFactory<Timer> weak_factory_;
-};
-
-}
-
-#endif // SKY_SCHEDULER_TIMER_H_
« no previous file with comments | « sky/scheduler/time_interval.cc ('k') | sky/scheduler/timer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698