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

Unified Diff: cc/output/begin_frame_args.h

Issue 2778223005: Plumb activation time to main (Closed)
Patch Set: remove performance observer Created 3 years, 9 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 | « no previous file | cc/output/begin_frame_args.cc » ('j') | cc/scheduler/scheduler.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/begin_frame_args.h
diff --git a/cc/output/begin_frame_args.h b/cc/output/begin_frame_args.h
index 41b156ad708d33692eed652b8c58a4466df3b4f7..fa402b9f9f8df60fd241d587e9be094b4d2e24a3 100644
--- a/cc/output/begin_frame_args.h
+++ b/cc/output/begin_frame_args.h
@@ -79,6 +79,7 @@ struct CC_EXPORT BeginFrameArgs {
base::TimeTicks deadline,
base::TimeDelta interval,
BeginFrameArgsType type);
+ BeginFrameArgs(const BeginFrameArgs&);
// This is the default delta that will be used to adjust the deadline when
// proper draw-time estimations are not yet available.
@@ -103,6 +104,12 @@ struct CC_EXPORT BeginFrameArgs {
// observers should expect the continuity of |sequence_number| to break.
uint64_t sequence_number;
uint32_t source_id; // |source_id| after |sequence_number| for packing.
+ uint32_t frame_source_number;
+
+ // TODO: move these into a separate struct?
+ // TODO: report a time delta - otherwise this doesn't make sense
+ base::TimeTicks ready_to_activate_time;
+ uint32_t ready_to_activate_source_frame_number;
brianderson 2017/03/30 18:32:03 BeginFrameArgs are used everywhere, but these fiel
panicker 2017/03/30 21:31:25 The reason I added it to BeginFrameArgs instead of
panicker 2017/03/30 23:09:19 I tried moving to BeginMainFrameAndCommitState - h
brianderson 2017/03/31 22:19:48 Re My #2 suggestion: That would be adding a BeginM
BeginFrameArgsType type;
bool on_critical_path;
« no previous file with comments | « no previous file | cc/output/begin_frame_args.cc » ('j') | cc/scheduler/scheduler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698