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

Unified Diff: cc/scheduler/begin_frame_source.h

Issue 2555173003: [Do not submit] D3DKMTWaitForVerticalBlankEvent VSync prototype (Closed)
Patch Set: Added command line switch and experiment support 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 | « no previous file | content/browser/BUILD.gn » ('j') | content/browser/compositor/gpu_vsync_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 58ee480d01138cc235f49ec13456019bb97b23f1..2eb177c5e2db9b3a489b813bc7e624a83e422efd 100644
--- a/cc/scheduler/begin_frame_source.h
+++ b/cc/scheduler/begin_frame_source.h
@@ -147,11 +147,14 @@ class CC_EXPORT StubBeginFrameSource : public BeginFrameSource {
bool IsThrottled() const override;
};
-// A frame source which ticks itself independently.
+// A frame source which parameters are updated externally.
class CC_EXPORT SyntheticBeginFrameSource : public BeginFrameSource {
public:
~SyntheticBeginFrameSource() override;
+ // Depending on implementation this might either update parameters used to
+ // generate BeginFrame signal in BeginFrameSource or be used as an actual
+ // VSync signal.
virtual void OnUpdateVSyncParameters(base::TimeTicks timebase,
base::TimeDelta interval) = 0;
// This overrides any past or future interval from updating vsync parameters.
« no previous file with comments | « no previous file | content/browser/BUILD.gn » ('j') | content/browser/compositor/gpu_vsync_begin_frame_source.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698