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 421183003: Revert of Add builders for tracing event's structural arguments (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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/layers/tiled_layer_impl.cc ('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/memory/ref_counted.h"
9 #include "base/time/time.h" 8 #include "base/time/time.h"
10 #include "base/values.h" 9 #include "base/values.h"
11 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
12 11
13 namespace base {
14 namespace debug {
15 class ConvertableToTraceFormat;
16 class TracedValue;
17 }
18 }
19
20 namespace cc { 12 namespace cc {
21 13
22 struct CC_EXPORT BeginFrameArgs { 14 struct CC_EXPORT BeginFrameArgs {
23 // Creates an invalid set of values. 15 // Creates an invalid set of values.
24 BeginFrameArgs(); 16 BeginFrameArgs();
25 17
26 // You should be able to find all instances where a BeginFrame has been 18 // You should be able to find all instances where a BeginFrame has been
27 // created by searching for "BeginFrameArgs::Create". 19 // created by searching for "BeginFrameArgs::Create".
28 static BeginFrameArgs Create(base::TimeTicks frame_time, 20 static BeginFrameArgs Create(base::TimeTicks frame_time,
29 base::TimeTicks deadline, 21 base::TimeTicks deadline,
(...skipping 10 matching lines...) Expand all
40 static base::TimeDelta DefaultInterval(); 32 static base::TimeDelta DefaultInterval();
41 33
42 // This is the default amount of time after the frame_time to retroactively 34 // This is the default amount of time after the frame_time to retroactively
43 // send a BeginFrame that had been skipped. This only has an effect if the 35 // send a BeginFrame that had been skipped. This only has an effect if the
44 // deadline has passed, since the deadline is also used to trigger BeginFrame 36 // deadline has passed, since the deadline is also used to trigger BeginFrame
45 // retroactively. 37 // retroactively.
46 static base::TimeDelta DefaultRetroactiveBeginFramePeriod(); 38 static base::TimeDelta DefaultRetroactiveBeginFramePeriod();
47 39
48 bool IsValid() const { return interval >= base::TimeDelta(); } 40 bool IsValid() const { return interval >= base::TimeDelta(); }
49 41
50 scoped_refptr<base::debug::ConvertableToTraceFormat> AsValue() const; 42 scoped_ptr<base::Value> AsValue() const;
51 void AsValueInto(base::debug::TracedValue* dict) const;
52 43
53 base::TimeTicks frame_time; 44 base::TimeTicks frame_time;
54 base::TimeTicks deadline; 45 base::TimeTicks deadline;
55 base::TimeDelta interval; 46 base::TimeDelta interval;
56 47
57 private: 48 private:
58 BeginFrameArgs(base::TimeTicks frame_time, 49 BeginFrameArgs(base::TimeTicks frame_time,
59 base::TimeTicks deadline, 50 base::TimeTicks deadline,
60 base::TimeDelta interval); 51 base::TimeDelta interval);
61 }; 52 };
62 53
63 } // namespace cc 54 } // namespace cc
64 55
65 #endif // CC_OUTPUT_BEGIN_FRAME_ARGS_H_ 56 #endif // CC_OUTPUT_BEGIN_FRAME_ARGS_H_
OLDNEW
« no previous file with comments | « cc/layers/tiled_layer_impl.cc ('k') | cc/output/begin_frame_args.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698