diff options
author | mithro@mithis.com <mithro@mithis.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-10 01:50:39 +0000 |
---|---|---|
committer | mithro@mithis.com <mithro@mithis.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-10 01:50:39 +0000 |
commit | 390884a85bc5b0615f415ad9ad5a7b27694e4e24 (patch) | |
tree | 3743102249304fd24835edce2b8954e4fed77ac8 /cc/output/begin_frame_args.cc | |
parent | a7a1c83a1fab0b235777ae65a5cb864e8fd9d9f0 (diff) | |
download | chromium_src-390884a85bc5b0615f415ad9ad5a7b27694e4e24.zip chromium_src-390884a85bc5b0615f415ad9ad5a7b27694e4e24.tar.gz chromium_src-390884a85bc5b0615f415ad9ad5a7b27694e4e24.tar.bz2 |
Refactoring the debug creation of BeginFrameArgs objects to be in unittest code only.
Adding an output_test_common.xx file which will also gain more testing features
for BeginFrameArgs soon.
BUG=371223
Review URL: https://codereview.chromium.org/275543004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269474 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/output/begin_frame_args.cc')
-rw-r--r-- | cc/output/begin_frame_args.cc | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/cc/output/begin_frame_args.cc b/cc/output/begin_frame_args.cc index 92901af..9766b626 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 |