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

Side by Side Diff: remoting/test/cyclic_frame_generator.h

Issue 2182833002: Add scroll perf test for protocol in chromoting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gyp Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « remoting/test/BUILD.gn ('k') | remoting/test/cyclic_frame_generator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 CyclicFrameGenerator( 50 explicit 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
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_
OLDNEW
« no previous file with comments | « remoting/test/BUILD.gn ('k') | remoting/test/cyclic_frame_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698