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..9f8dab9dc44073e647c2cad68642bce27bb09ec6 |
--- /dev/null |
+++ b/cc/scheduler/video_frame_controller.h |
@@ -0,0 +1,34 @@ |
+// 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() {} |
+}; |
+ |
+class CC_EXPORT VideoFrameController { |
brianderson
2015/04/16 01:42:23
Can you add a comment indicating that we should co
sunnyps
2015/04/16 20:56:11
Done.
|
+ public: |
+ virtual void OnBeginFrame(const BeginFrameArgs& args) = 0; |
+ |
+ protected: |
+ virtual ~VideoFrameController() {} |
+}; |
+ |
+} // namespace cc |
+ |
+#endif // CC_SCHEDULER_VIDEO_FRAME_CONTROLLER_H_ |