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

Unified Diff: cc/scheduler/video_frame_controller.h

Issue 1039533002: cc: Add support for sending BeginFrames for video. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@misc_video_refactoring
Patch Set: Fix comment. Created 5 years, 8 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_unittest.cc ('k') | cc/test/fake_layer_tree_host_impl_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/video_frame_controller.h
diff --git a/cc/scheduler/video_frame_controller.h b/cc/scheduler/video_frame_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..dee7df530a83c40784d6c2b42ee2e76ced95b82f
--- /dev/null
+++ b/cc/scheduler/video_frame_controller.h
@@ -0,0 +1,35 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CC_SCHEDULER_VIDEO_FRAME_CONTROLLER_H_
+#define CC_SCHEDULER_VIDEO_FRAME_CONTROLLER_H_
+
+#include "cc/base/cc_export.h"
+#include "cc/output/begin_frame_args.h"
+
+namespace cc {
+
+class VideoFrameController;
+
+class CC_EXPORT VideoFrameControllerClient {
+ public:
+ virtual void AddVideoFrameController(VideoFrameController* controller) = 0;
+ virtual void RemoveVideoFrameController(VideoFrameController* controller) = 0;
+
+ protected:
+ virtual ~VideoFrameControllerClient() {}
+};
+
+// TODO(sunnyps): Consider making this a BeginFrameObserver some day.
+class CC_EXPORT VideoFrameController {
+ public:
+ virtual void OnBeginFrame(const BeginFrameArgs& args) = 0;
+
+ protected:
+ virtual ~VideoFrameController() {}
+};
+
+} // namespace cc
+
+#endif // CC_SCHEDULER_VIDEO_FRAME_CONTROLLER_H_
« no previous file with comments | « cc/scheduler/scheduler_unittest.cc ('k') | cc/test/fake_layer_tree_host_impl_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698