Index: cc/scheduler/scheduler.h |
diff --git a/cc/scheduler/scheduler.h b/cc/scheduler/scheduler.h |
index 9efd831d76aad31df9c7b6e41d5484cd8eb7265b..90e0d9b9422d2d8bfdf2bed5fa836bfcc6e57b79 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 sync_tree); |
brianderson
2017/04/10 23:12:47
sync_tree -> source_frame_number
panicker
2017/04/11 22:19:37
Done.
|
void NotifyReadyToDraw(); |
void SetBeginFrameSource(BeginFrameSource* source); |
@@ -185,6 +185,13 @@ class CC_EXPORT Scheduler : public BeginFrameObserverBase { |
bool stopped_; |
+ // 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(); |