| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "base/json/json_writer.h" | |
| 6 #include "cc/output/begin_frame_args.h" | 5 #include "cc/output/begin_frame_args.h" |
| 7 #include "ui/gfx/frame_time.h" | 6 #include "ui/gfx/frame_time.h" |
| 8 | 7 |
| 9 namespace cc { | 8 namespace cc { |
| 10 | 9 |
| 11 BeginFrameArgs::BeginFrameArgs() | 10 BeginFrameArgs::BeginFrameArgs() |
| 12 : frame_time(base::TimeTicks()), | 11 : frame_time(base::TimeTicks()), |
| 13 deadline(base::TimeTicks()), | 12 deadline(base::TimeTicks()), |
| 14 interval(base::TimeDelta::FromMicroseconds(-1)) { | 13 interval(base::TimeDelta::FromMicroseconds(-1)) { |
| 15 } | 14 } |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 57 |
| 59 base::TimeDelta BeginFrameArgs::DefaultInterval() { | 58 base::TimeDelta BeginFrameArgs::DefaultInterval() { |
| 60 return base::TimeDelta::FromMicroseconds(16666); | 59 return base::TimeDelta::FromMicroseconds(16666); |
| 61 } | 60 } |
| 62 | 61 |
| 63 base::TimeDelta BeginFrameArgs::DefaultRetroactiveBeginFramePeriod() { | 62 base::TimeDelta BeginFrameArgs::DefaultRetroactiveBeginFramePeriod() { |
| 64 return base::TimeDelta::FromMicroseconds(4444); | 63 return base::TimeDelta::FromMicroseconds(4444); |
| 65 } | 64 } |
| 66 | 65 |
| 67 } // namespace cc | 66 } // namespace cc |
| OLD | NEW |