summaryrefslogtreecommitdiffstats
path: root/cc/test/begin_frame_args_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/test/begin_frame_args_test.cc')
-rw-r--r--cc/test/begin_frame_args_test.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/cc/test/begin_frame_args_test.cc b/cc/test/begin_frame_args_test.cc
index 00952e2..83051b2 100644
--- a/cc/test/begin_frame_args_test.cc
+++ b/cc/test/begin_frame_args_test.cc
@@ -11,10 +11,14 @@
namespace cc {
BeginFrameArgs CreateBeginFrameArgsForTesting() {
- base::TimeTicks now = gfx::FrameTime::Now();
- return BeginFrameArgs::Create(now,
- now + (BeginFrameArgs::DefaultInterval() / 2),
- BeginFrameArgs::DefaultInterval());
+ return CreateBeginFrameArgsForTesting(gfx::FrameTime::Now());
+}
+
+BeginFrameArgs CreateBeginFrameArgsForTesting(base::TimeTicks frame_time) {
+ return BeginFrameArgs::Create(
+ frame_time,
+ frame_time + (BeginFrameArgs::DefaultInterval() / 2),
+ BeginFrameArgs::DefaultInterval());
}
BeginFrameArgs CreateBeginFrameArgsForTesting(int64 frame_time,