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

Unified Diff: cc/scheduler/begin_frame_source.h

Issue 2029323004: Get rid of virtual Display::CreateScheduler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@onscreendisplayclient
Patch Set: displaytest: unusedvar Created 4 years, 6 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 | « base/test/test_message_loop.h ('k') | cc/surfaces/display.h » ('j') | no next file with comments »
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 8a3034cc702bdd4415105c9c902d31f704ad6d46..0a8a51f08d7c911d6c1594b1623ae74ad5a9fe43 100644
--- a/cc/scheduler/begin_frame_source.h
+++ b/cc/scheduler/begin_frame_source.h
@@ -114,6 +114,15 @@ class CC_EXPORT BeginFrameSource {
virtual void RemoveObserver(BeginFrameObserver* obs) = 0;
};
+// A BeginFrameSource that does nothing.
+class StubBeginFrameSource : public BeginFrameSource {
+ public:
+ void DidFinishFrame(BeginFrameObserver* obs,
+ size_t remaining_frames) override {}
+ void AddObserver(BeginFrameObserver* obs) override {}
+ void RemoveObserver(BeginFrameObserver* obs) override {}
+};
+
// A frame source which ticks itself independently.
class CC_EXPORT SyntheticBeginFrameSource : public BeginFrameSource {
public:
« no previous file with comments | « base/test/test_message_loop.h ('k') | cc/surfaces/display.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698