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

Unified Diff: cc/output/begin_frame_args.cc

Issue 2778223005: Plumb activation time to main (Closed)
Patch Set: review comment Created 3 years, 8 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/begin_frame_args_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 ae595450857d753617200f8b5fc839c1a1f5334a..c6ff88d1e7aafc92aa50c88cea9018cbc5332c0d 100644
--- a/cc/output/begin_frame_args.cc
+++ b/cc/output/begin_frame_args.cc
@@ -25,6 +25,10 @@ const char* BeginFrameArgs::TypeToString(BeginFrameArgsType type) {
constexpr uint64_t BeginFrameArgs::kInvalidFrameNumber;
constexpr uint64_t BeginFrameArgs::kStartingFrameNumber;
+constexpr uint32_t BeginFrameArgs::kDefaultSourceFrameNumber;
+
+BeginFrameArgs::BeginFrameArgs(const BeginFrameArgs& other) = default;
+BeginFrameArgs::~BeginFrameArgs() = default;
BeginFrameArgs::BeginFrameArgs()
: frame_time(base::TimeTicks()),
@@ -37,6 +41,7 @@ BeginFrameArgs::BeginFrameArgs()
BeginFrameArgs::BeginFrameArgs(uint32_t source_id,
uint64_t sequence_number,
+ uint32_t source_frame_number,
base::TimeTicks frame_time,
base::TimeTicks deadline,
base::TimeDelta interval,
@@ -54,6 +59,7 @@ BeginFrameArgs::BeginFrameArgs(uint32_t source_id,
BeginFrameArgs BeginFrameArgs::Create(BeginFrameArgs::CreationLocation location,
uint32_t source_id,
uint64_t sequence_number,
+ uint32_t source_frame_number,
base::TimeTicks frame_time,
base::TimeTicks deadline,
base::TimeDelta interval,
@@ -61,11 +67,12 @@ BeginFrameArgs BeginFrameArgs::Create(BeginFrameArgs::CreationLocation location,
DCHECK_NE(type, BeginFrameArgs::INVALID);
DCHECK_NE(type, BeginFrameArgs::BEGIN_FRAME_ARGS_TYPE_MAX);
#ifdef NDEBUG
- return BeginFrameArgs(source_id, sequence_number, frame_time, deadline,
- interval, type);
+ return BeginFrameArgs(source_id, sequence_number, source_frame_number,
+ frame_time, deadline, interval, type);
#else
- BeginFrameArgs args = BeginFrameArgs(source_id, sequence_number, frame_time,
- deadline, interval, type);
+ BeginFrameArgs args =
+ BeginFrameArgs(source_id, sequence_number, source_frame_number,
+ frame_time, deadline, interval, type);
args.created_from = location;
return args;
#endif
« no previous file with comments | « cc/output/begin_frame_args.h ('k') | cc/output/begin_frame_args_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698