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

Unified Diff: cc/scheduler/scheduler.h

Issue 2778223005: Plumb activation time to main (Closed)
Patch Set: pass 0 for sync tree in NotifyReadyToActivate from SingleThreadProxy 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
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();

Powered by Google App Engine
This is Rietveld 408576698