Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Protocol for video messages. | 5 // Protocol for video messages. |
| 6 | 6 |
| 7 syntax = "proto2"; | 7 syntax = "proto2"; |
| 8 | 8 |
| 9 option optimize_for = LITE_RUNTIME; | 9 option optimize_for = LITE_RUNTIME; |
| 10 | 10 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 51 // Time in milliseconds spent in capturing this video frame. | 51 // Time in milliseconds spent in capturing this video frame. |
| 52 optional int64 capture_time_ms = 7; | 52 optional int64 capture_time_ms = 7; |
| 53 | 53 |
| 54 // Time in milliseconds spent in encoding this video frame. | 54 // Time in milliseconds spent in encoding this video frame. |
| 55 optional int64 encode_time_ms = 8; | 55 optional int64 encode_time_ms = 8; |
| 56 | 56 |
| 57 // The client's timestamp of the latest event received by the host before | 57 // The client's timestamp of the latest event received by the host before |
| 58 // starting to capture this video frame. | 58 // starting to capture this video frame. |
| 59 optional int64 latest_event_timestamp = 9; | 59 optional int64 latest_event_timestamp = 9; |
| 60 | 60 |
| 61 // Provides the new shape for this frame, iff |use_desktop_shape| is true. | |
| 62 repeated Rect desktop_shape_rects = 10; | |
|
joedow
2016/03/25 01:26:18
Is it useful to leave a comment that fields 10 and
Jamie
2016/03/25 17:17:18
Or even rename them DEPRECATED_* so that they can'
Sergey Ulanov
2016/03/25 19:33:14
Done.
Sergey Ulanov
2016/03/25 19:33:14
If we keep them as deprecated protobuf will still
| |
| 63 | |
| 64 // True when |desktop_shape_rects| should be used, false to indicate that | |
| 65 // the frame is un-shaped. If the shape has not changed since the preceding | |
| 66 // frame then this field should be omitted. | |
| 67 optional bool use_desktop_shape = 11; | |
| 68 | |
| 69 // Optional frame timestamp. Used in tests to estimate frame latency. | 61 // Optional frame timestamp. Used in tests to estimate frame latency. |
| 70 optional int64 timestamp = 12; | 62 optional int64 timestamp = 12; |
| 71 | 63 |
| 72 // Frame identifier used to match VideoFrame and VideoAck. | 64 // Frame identifier used to match VideoFrame and VideoAck. |
| 73 optional int32 frame_id = 13; | 65 optional int32 frame_id = 13; |
| 74 | 66 |
| 75 // Time from when the last event was received until capturing has started. | 67 // Time from when the last event was received until capturing has started. |
| 76 optional int64 capture_pending_time_ms = 14; | 68 optional int64 capture_pending_time_ms = 14; |
| 77 | 69 |
| 78 // Total overhead time for IPC and threading when capturing frames. | 70 // Total overhead time for IPC and threading when capturing frames. |
| 79 optional int64 capture_overhead_time_ms = 15; | 71 optional int64 capture_overhead_time_ms = 15; |
| 80 | 72 |
| 81 // Time between when the frame was captured and when encoder started encoding | 73 // Time between when the frame was captured and when encoder started encoding |
| 82 // it. | 74 // it. |
| 83 optional int64 encode_pending_time_ms = 16; | 75 optional int64 encode_pending_time_ms = 16; |
| 84 | 76 |
| 85 // Time for which the frame is blocked until it's sent to the client. | 77 // Time for which the frame is blocked until it's sent to the client. |
| 86 optional int64 send_pending_time_ms = 17; | 78 optional int64 send_pending_time_ms = 17; |
| 87 } | 79 } |
| 88 | 80 |
| 89 // VideoAck acknowledges that the frame in the VideoPacket with the same | 81 // VideoAck acknowledges that the frame in the VideoPacket with the same |
| 90 // frame_id has been rendered. VideoAck messages must be sent only for frames | 82 // frame_id has been rendered. VideoAck messages must be sent only for frames |
| 91 // that have frame_id field set. They must be sent the same order in which | 83 // that have frame_id field set. They must be sent the same order in which |
| 92 // the corresponding VideoPackets were received. | 84 // the corresponding VideoPackets were received. |
| 93 message VideoAck { | 85 message VideoAck { |
| 94 // Frame ID. | 86 // Frame ID. |
| 95 optional int32 frame_id = 1; | 87 optional int32 frame_id = 1; |
| 96 } | 88 } |
| OLD | NEW |