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

Unified Diff: cc/output/begin_frame_args.cc

Issue 275543004: Refactoring the debug creation of BeginFrameArgs objects to be in unittest code only. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebasing onto upstream master. Created 6 years, 7 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 | « cc/output/begin_frame_args.h ('k') | cc/output/output_surface_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/begin_frame_args.cc
diff --git a/cc/output/begin_frame_args.cc b/cc/output/begin_frame_args.cc
index 92901afb1f3d897b37ca374297a8e5bc25463cbc..9766b6262cc6d624cd2a9e6139f1ccebc9e83229 100644
--- a/cc/output/begin_frame_args.cc
+++ b/cc/output/begin_frame_args.cc
@@ -35,20 +35,6 @@ BeginFrameArgs BeginFrameArgs::CreateForSynchronousCompositor() {
DefaultInterval());
}
-BeginFrameArgs BeginFrameArgs::CreateForTesting() {
- base::TimeTicks now = gfx::FrameTime::Now();
- return BeginFrameArgs(now,
- now + (DefaultInterval() / 2),
- DefaultInterval());
-}
-
-BeginFrameArgs BeginFrameArgs::CreateExpiredForTesting() {
- base::TimeTicks now = gfx::FrameTime::Now();
- return BeginFrameArgs(now,
- now - DefaultInterval(),
- DefaultInterval());
-}
-
// This is a hard-coded deadline adjustment that assumes 60Hz, to be used in
// cases where a good estimated draw time is not known. Using 1/3 of the vsync
// as the default adjustment gives the Browser the last 1/3 of a frame to
« no previous file with comments | « cc/output/begin_frame_args.h ('k') | cc/output/output_surface_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698