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

Unified Diff: cc/scheduler/begin_frame_source.h

Issue 619843002: cc: Make separate interface for BeginFrame ipc from OutputSurface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/begin_frame_source.h
diff --git a/cc/scheduler/begin_frame_source.h b/cc/scheduler/begin_frame_source.h
index 3b8a576c4ed9fa8363aeea15a2bdef772355234e..a74df7910bf9a8201f3d40819108c54dbc0da86b 100644
--- a/cc/scheduler/begin_frame_source.h
+++ b/cc/scheduler/begin_frame_source.h
@@ -162,6 +162,15 @@ class CC_EXPORT BeginFrameSourceMixIn : public BeginFrameSource {
bool inside_as_value_into_;
};
+// A frame source that delivers BeginFrame from outside of CC layer.
danakj 2014/10/10 16:03:35 from outside of cc.
simonhong 2014/10/15 01:04:21 Done.
+class CC_EXPORT ExternalBeginFrameSource : public BeginFrameSourceMixIn {
danakj 2014/10/10 16:03:35 This should inherit from BeginFrameSource (or why
simonhong 2014/10/15 01:04:21 I think ExternalBeginFrameSource should have a dif
danakj 2014/10/15 06:49:49 So you have a use case for why it would need to be
+ public:
+ virtual ~ExternalBeginFrameSource() {}
+
+ // Tells the Source that client is ready to handle external BeginFrames.
+ virtual void SetClientReady() = 0;
+};
+
// A frame source which calls BeginFrame (at the next possible time) as soon as
// remaining frames reaches zero.
class CC_EXPORT BackToBackBeginFrameSource : public BeginFrameSourceMixIn {

Powered by Google App Engine
This is Rietveld 408576698