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

Unified Diff: cc/test/begin_frame_args_test.cc

Issue 1185723010: cc: Make test BeginFrameArgs deadlines more realistic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c176a0e6ee877333bc6e20511b1b768ad72f58fd..63972854e81ae83e58b8abaf4705625abba8ec3c 100644
--- a/cc/test/begin_frame_args_test.cc
+++ b/cc/test/begin_frame_args_test.cc
@@ -19,7 +19,8 @@ BeginFrameArgs CreateBeginFrameArgsForTesting(
base::TimeTicks frame_time) {
return BeginFrameArgs::Create(
location, frame_time,
- frame_time + (BeginFrameArgs::DefaultInterval() / 2),
+ frame_time + BeginFrameArgs::DefaultInterval() -
+ BeginFrameArgs::DefaultEstimatedParentDrawTime(),
BeginFrameArgs::DefaultInterval(), BeginFrameArgs::NORMAL);
}
@@ -59,7 +60,8 @@ BeginFrameArgs CreateBeginFrameArgsForTesting(
scoped_refptr<TestNowSource> now_src) {
base::TimeTicks now = now_src->Now();
return BeginFrameArgs::Create(
- location, now, now + (BeginFrameArgs::DefaultInterval() / 2),
+ location, now, now + BeginFrameArgs::DefaultInterval() -
+ BeginFrameArgs::DefaultEstimatedParentDrawTime(),
BeginFrameArgs::DefaultInterval(), BeginFrameArgs::NORMAL);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698