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

Unified Diff: cc/scheduler/begin_frame_source.h

Issue 2897263003: Fix Omnibox.CharTypedToRepaintLatency regression with D3DVsync experiment (Closed)
Patch Set: Address the test flakiness Created 3 years, 7 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/scheduler/begin_frame_source.cc » ('j') | cc/scheduler/begin_frame_source.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/begin_frame_source.h
diff --git a/cc/scheduler/begin_frame_source.h b/cc/scheduler/begin_frame_source.h
index 98ea3771b397907cd7da351af4a4fd660d945134..ff4b44c69f0e44e61f1614ec77125cfa5e31c06c 100644
--- a/cc/scheduler/begin_frame_source.h
+++ b/cc/scheduler/begin_frame_source.h
@@ -275,6 +275,12 @@ class CC_EXPORT ExternalBeginFrameSource : public BeginFrameSource {
void OnBeginFrame(const BeginFrameArgs& args);
protected:
+ // Called on AddObserver and gets missed BeginFrameArgs for the given
+ // observer; returns true if the output |args| argument is valid and
+ // OnBeginFrame should be called.
+ virtual bool GetMissedBeginFrameArgs(BeginFrameObserver* obs,
sunnyps 2017/05/30 22:13:17 nit: Can you make this return BeginFrameArgs? The
stanisc 2017/05/31 01:17:52 Returning BeginFrameArgs would be slightly less op
+ BeginFrameArgs* missed_args);
+
BeginFrameArgs last_begin_frame_args_;
sunnyps 2017/05/30 22:13:17 nit: Can you add a method to get last_begin_frame_
stanisc 2017/05/31 01:17:52 I am reluctant to do this because this member is a
std::unordered_set<BeginFrameObserver*> observers_;
ExternalBeginFrameSourceClient* client_;
« no previous file with comments | « no previous file | cc/scheduler/begin_frame_source.cc » ('j') | cc/scheduler/begin_frame_source.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698