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

Unified Diff: cc/scheduler/scheduler.h

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/scheduler/begin_frame_source.cc ('k') | cc/scheduler/scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/scheduler.h
diff --git a/cc/scheduler/scheduler.h b/cc/scheduler/scheduler.h
index b22e9c3757254ca235da8449177602cece5e71cf..79b86204daeccd874b11b81f923254b807d89cf2 100644
--- a/cc/scheduler/scheduler.h
+++ b/cc/scheduler/scheduler.h
@@ -77,7 +77,7 @@ class CC_EXPORT Scheduler : public BeginFrameObserverBase {
void SetVisible(bool visible);
bool visible() { return state_machine_.visible(); }
void SetCanDraw(bool can_draw);
- void NotifyReadyToActivate();
+ void NotifyReadyToActivate(int source_frame_number);
void NotifyReadyToDraw();
void SetBeginFrameSource(BeginFrameSource* source);
@@ -191,6 +191,13 @@ class CC_EXPORT Scheduler : public BeginFrameObserverBase {
bool stopped_ = false;
+ // This is to report Activation (ReadyToActivate signal) time back to Main.
+ // A vector of pairs of source_frame_number and timestamp is captured, and
+ // sent back in BeginFrameArgs with the next ProxyMain::BeginMainFrame. A
+ // vector is needed as there can be multiple ReadyToActivate signals before
+ // the next BeginMainFrame.
+ std::vector<std::pair<uint32_t, base::TimeTicks>> ready_to_activate_time_;
+
private:
void ScheduleBeginImplFrameDeadline();
void ScheduleBeginImplFrameDeadlineIfNeeded();
« no previous file with comments | « cc/scheduler/begin_frame_source.cc ('k') | cc/scheduler/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698