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

Unified Diff: cc/test/begin_frame_args_test.cc

Issue 267783004: Refactoring the way begin frame sources inside scheduler work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Very minor fixes. Created 6 years, 3 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
Index: cc/test/begin_frame_args_test.cc
diff --git a/cc/test/begin_frame_args_test.cc b/cc/test/begin_frame_args_test.cc
index 137d5e12863be408a80f8eac25949be31ae36d72..1c4b236f0ac6a95fdeb35b385510160507fc5c7d 100644
--- a/cc/test/begin_frame_args_test.cc
+++ b/cc/test/begin_frame_args_test.cc
@@ -29,6 +29,18 @@ BeginFrameArgs CreateBeginFrameArgsForTesting(int64 frame_time,
base::TimeDelta::FromInternalValue(interval));
}
+BeginFrameArgs CreateTypedBeginFrameArgsForTesting(
+ int64 frame_time,
+ int64 deadline,
+ int64 interval,
+ BeginFrameArgs::BeginFrameArgsType type) {
+ return BeginFrameArgs::CreateTyped(
+ base::TimeTicks::FromInternalValue(frame_time),
+ base::TimeTicks::FromInternalValue(deadline),
+ base::TimeDelta::FromInternalValue(interval),
+ type);
+}
+
BeginFrameArgs CreateExpiredBeginFrameArgsForTesting() {
base::TimeTicks now = gfx::FrameTime::Now();
return BeginFrameArgs::Create(now,

Powered by Google App Engine
This is Rietveld 408576698