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

Side by Side Diff: remoting/base/capture_data.h

Issue 6792038: Chromoting to report roundtrip latency (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: done Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | remoting/base/encoder_row_based.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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BASE_CAPTURE_DATA_H_ 5 #ifndef REMOTING_BASE_CAPTURE_DATA_H_
6 #define REMOTING_BASE_CAPTURE_DATA_H_ 6 #define REMOTING_BASE_CAPTURE_DATA_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 InvalidRects& mutable_dirty_rects() { return dirty_rects_; } 47 InvalidRects& mutable_dirty_rects() { return dirty_rects_; }
48 48
49 // Return the time spent on capturing. 49 // Return the time spent on capturing.
50 int capture_time_ms() const { return capture_time_ms_; } 50 int capture_time_ms() const { return capture_time_ms_; }
51 51
52 // Set the time spent on capturing. 52 // Set the time spent on capturing.
53 void set_capture_time_ms(int capture_time_ms) { 53 void set_capture_time_ms(int capture_time_ms) {
54 capture_time_ms_ = capture_time_ms; 54 capture_time_ms_ = capture_time_ms;
55 } 55 }
56 56
57 int64 client_sequence_number() const { return client_sequence_number_; }
58
59 void set_client_sequence_number(int64 client_sequence_number) {
60 client_sequence_number_ = client_sequence_number;
61 }
62
57 private: 63 private:
58 const DataPlanes data_planes_; 64 const DataPlanes data_planes_;
59 InvalidRects dirty_rects_; 65 InvalidRects dirty_rects_;
60 gfx::Size size_; 66 gfx::Size size_;
61 media::VideoFrame::Format pixel_format_; 67 media::VideoFrame::Format pixel_format_;
62 68
63 // Time spent in capture. Unit is in milliseconds. 69 // Time spent in capture. Unit is in milliseconds.
64 int capture_time_ms_; 70 int capture_time_ms_;
65 71
72 // Sequence number supplied by client for performance tracking.
73 int64 client_sequence_number_;
74
66 friend class base::RefCountedThreadSafe<CaptureData>; 75 friend class base::RefCountedThreadSafe<CaptureData>;
67 virtual ~CaptureData(); 76 virtual ~CaptureData();
68 }; 77 };
69 78
70 } // namespace remoting 79 } // namespace remoting
71 80
72 #endif // REMOTING_BASE_CAPTURE_DATA_H_ 81 #endif // REMOTING_BASE_CAPTURE_DATA_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/base/encoder_row_based.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698