Roll src/third_party/WebKit 605a979:06cb9e9 (svn 202556:202558)
[chromium-blink-merge.git] / components / scheduler / child / lazy_now.cc
blob04c57bc16a46ca33e5bf0829ef6a41ac492f32bd
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
3 // found in the LICENSE file.
5 #include "components/scheduler/child/lazy_now.h"
7 #include "components/scheduler/child/task_queue_manager.h"
9 namespace scheduler {
10 namespace internal {
12 base::TimeTicks LazyNow::Now() {
13 if (now_.is_null())
14 now_ = task_queue_manager_->Now();
15 return now_;
18 } // namespace internal
19 } // namespace scheduler