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

Unified Diff: cc/surfaces/display_scheduler.h

Issue 2591013004: [cc] Add and use BeginFrameAck for DidFinishFrame. (Closed)
Patch Set: remove ipc struct traits for BeginFrameAck. Created 3 years, 11 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/scheduler_state_machine.h ('k') | cc/surfaces/display_scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/display_scheduler.h
diff --git a/cc/surfaces/display_scheduler.h b/cc/surfaces/display_scheduler.h
index cda88e5819bc948ff783192659a8b0b5e1f09b15..83d1300039351fac242795d8842009331cc62fda 100644
--- a/cc/surfaces/display_scheduler.h
+++ b/cc/surfaces/display_scheduler.h
@@ -55,12 +55,13 @@ class CC_SURFACES_EXPORT DisplayScheduler : public BeginFrameObserverBase {
protected:
base::TimeTicks DesiredBeginFrameDeadlineTime();
virtual void ScheduleBeginFrameDeadline();
- void AttemptDrawAndSwap();
+ bool AttemptDrawAndSwap();
void OnBeginFrameDeadline();
- void DrawAndSwap();
+ bool DrawAndSwap();
void StartObservingBeginFrames();
void StopObservingBeginFrames();
bool ShouldDraw();
+ void DidFinishFrame(bool did_draw);
DisplaySchedulerClient* client_;
BeginFrameSource* begin_frame_source_;
« no previous file with comments | « cc/scheduler/scheduler_state_machine.h ('k') | cc/surfaces/display_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698