OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |