| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 REMOTING_TEST_CYCLIC_FRAME_GENERATOR_H_ | 5 #ifndef REMOTING_TEST_CYCLIC_FRAME_GENERATOR_H_ |
| 6 #define REMOTING_TEST_CYCLIC_FRAME_GENERATOR_H_ | 6 #define REMOTING_TEST_CYCLIC_FRAME_GENERATOR_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 ChangeInfo(ChangeType type, base::TimeTicks timestamp); | 40 ChangeInfo(ChangeType type, base::TimeTicks timestamp); |
| 41 | 41 |
| 42 ChangeType type = ChangeType::NO_CHANGES; | 42 ChangeType type = ChangeType::NO_CHANGES; |
| 43 base::TimeTicks timestamp; | 43 base::TimeTicks timestamp; |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 typedef std::vector<ChangeInfo> ChangeInfoList; | 46 typedef std::vector<ChangeInfo> ChangeInfoList; |
| 47 | 47 |
| 48 static scoped_refptr<CyclicFrameGenerator> Create(); | 48 static scoped_refptr<CyclicFrameGenerator> Create(); |
| 49 | 49 |
| 50 explicit CyclicFrameGenerator( | 50 CyclicFrameGenerator( |
| 51 std::vector<std::unique_ptr<webrtc::DesktopFrame>> reference_frames); | 51 std::vector<std::unique_ptr<webrtc::DesktopFrame>> reference_frames); |
| 52 | 52 |
| 53 void set_frame_cycle_period(base::TimeDelta frame_cycle_period) { | 53 void set_frame_cycle_period(base::TimeDelta frame_cycle_period) { |
| 54 frame_cycle_period_ = frame_cycle_period; | 54 frame_cycle_period_ = frame_cycle_period; |
| 55 } | 55 } |
| 56 | 56 |
| 57 void set_cursor_blink_period(base::TimeDelta cursor_blink_period) { | 57 void set_cursor_blink_period(base::TimeDelta cursor_blink_period) { |
| 58 cursor_blink_period_ = cursor_blink_period; | 58 cursor_blink_period_ = cursor_blink_period; |
| 59 } | 59 } |
| 60 | 60 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 // frame_id of the frame passed to the last GetChangeList() call. | 110 // frame_id of the frame passed to the last GetChangeList() call. |
| 111 int last_identifier_frame_ = -1; | 111 int last_identifier_frame_ = -1; |
| 112 | 112 |
| 113 DISALLOW_COPY_AND_ASSIGN(CyclicFrameGenerator); | 113 DISALLOW_COPY_AND_ASSIGN(CyclicFrameGenerator); |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 } // namespace test | 116 } // namespace test |
| 117 } // namespace remoting | 117 } // namespace remoting |
| 118 | 118 |
| 119 #endif // REMOTING_TEST_CYCLIC_FRAME_GENERATOR_H_ | 119 #endif // REMOTING_TEST_CYCLIC_FRAME_GENERATOR_H_ |
| OLD | NEW |