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

Side by Side Diff: cc/output/begin_frame_args.h

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/output/begin_frame_args.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_OUTPUT_BEGIN_FRAME_ARGS_H_ 5 #ifndef CC_OUTPUT_BEGIN_FRAME_ARGS_H_
6 #define CC_OUTPUT_BEGIN_FRAME_ARGS_H_ 6 #define CC_OUTPUT_BEGIN_FRAME_ARGS_H_
7 7
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "cc/base/cc_export.h" 9 #include "cc/base/cc_export.h"
10 10
11 namespace cc { 11 namespace cc {
12 12
13 struct CC_EXPORT BeginFrameArgs { 13 struct CC_EXPORT BeginFrameArgs {
14 // Creates an invalid set of values. 14 // Creates an invalid set of values.
15 BeginFrameArgs(); 15 BeginFrameArgs();
16 16
17 // You should be able to find all instances where a BeginFrame has been 17 // You should be able to find all instances where a BeginFrame has been
18 // created by searching for "BeginFrameArgs::Create". 18 // created by searching for "BeginFrameArgs::Create".
19 static BeginFrameArgs Create(base::TimeTicks frame_time, 19 static BeginFrameArgs Create(base::TimeTicks frame_time,
20 base::TimeTicks deadline, 20 base::TimeTicks deadline,
21 base::TimeDelta interval); 21 base::TimeDelta interval);
22 static BeginFrameArgs CreateForSynchronousCompositor(); 22 static BeginFrameArgs CreateForSynchronousCompositor();
23 static BeginFrameArgs CreateForTesting();
24 static BeginFrameArgs CreateExpiredForTesting();
25 23
26 // This is the default delta that will be used to adjust the deadline when 24 // This is the default delta that will be used to adjust the deadline when
27 // proper draw-time estimations are not yet available. 25 // proper draw-time estimations are not yet available.
28 static base::TimeDelta DefaultDeadlineAdjustment(); 26 static base::TimeDelta DefaultDeadlineAdjustment();
29 27
30 // This is the default interval to use to avoid sprinkling the code with 28 // This is the default interval to use to avoid sprinkling the code with
31 // magic numbers. 29 // magic numbers.
32 static base::TimeDelta DefaultInterval(); 30 static base::TimeDelta DefaultInterval();
33 31
34 // This is the default amount of time after the frame_time to retroactively 32 // This is the default amount of time after the frame_time to retroactively
(...skipping 10 matching lines...) Expand all
45 43
46 private: 44 private:
47 BeginFrameArgs(base::TimeTicks frame_time, 45 BeginFrameArgs(base::TimeTicks frame_time,
48 base::TimeTicks deadline, 46 base::TimeTicks deadline,
49 base::TimeDelta interval); 47 base::TimeDelta interval);
50 }; 48 };
51 49
52 } // namespace cc 50 } // namespace cc
53 51
54 #endif // CC_OUTPUT_BEGIN_FRAME_ARGS_H_ 52 #endif // CC_OUTPUT_BEGIN_FRAME_ARGS_H_
OLDNEW
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/output/begin_frame_args.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698