OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CC_SCHEDULER_VIDEO_FRAME_CONTROLLER_H_ | 5 #ifndef CC_SCHEDULER_VIDEO_FRAME_CONTROLLER_H_ |
6 #define CC_SCHEDULER_VIDEO_FRAME_CONTROLLER_H_ | 6 #define CC_SCHEDULER_VIDEO_FRAME_CONTROLLER_H_ |
7 | 7 |
8 #include "cc/base/cc_export.h" | 8 #include "cc/cc_export.h" |
9 #include "cc/output/begin_frame_args.h" | 9 #include "cc/output/begin_frame_args.h" |
10 | 10 |
11 namespace cc { | 11 namespace cc { |
12 | 12 |
13 class VideoFrameController; | 13 class VideoFrameController; |
14 | 14 |
15 class CC_EXPORT VideoFrameControllerClient { | 15 class CC_EXPORT VideoFrameControllerClient { |
16 public: | 16 public: |
17 virtual void AddVideoFrameController(VideoFrameController* controller) = 0; | 17 virtual void AddVideoFrameController(VideoFrameController* controller) = 0; |
18 virtual void RemoveVideoFrameController(VideoFrameController* controller) = 0; | 18 virtual void RemoveVideoFrameController(VideoFrameController* controller) = 0; |
(...skipping 12 matching lines...) Expand all Loading... |
31 // determine when SetNeedsRedraw() is called but the draw is aborted. | 31 // determine when SetNeedsRedraw() is called but the draw is aborted. |
32 virtual void DidDrawFrame() = 0; | 32 virtual void DidDrawFrame() = 0; |
33 | 33 |
34 protected: | 34 protected: |
35 virtual ~VideoFrameController() {} | 35 virtual ~VideoFrameController() {} |
36 }; | 36 }; |
37 | 37 |
38 } // namespace cc | 38 } // namespace cc |
39 | 39 |
40 #endif // CC_SCHEDULER_VIDEO_FRAME_CONTROLLER_H_ | 40 #endif // CC_SCHEDULER_VIDEO_FRAME_CONTROLLER_H_ |
OLD | NEW |