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

Unified Diff: remoting/base/protocol/chromotocol.proto

Issue 2963003: Changing UpdateStreamPacket protobuf definition for chromoting (Closed)
Patch Set: fixed comments Created 10 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/base/protocol_decoder_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/protocol/chromotocol.proto
diff --git a/remoting/base/protocol/chromotocol.proto b/remoting/base/protocol/chromotocol.proto
index e60716fe45774cb632a2f9eb8f6d0308ae438b28..77bc9245e861c2fc7647cbd8ab870d5e45a8bf5b 100644
--- a/remoting/base/protocol/chromotocol.proto
+++ b/remoting/base/protocol/chromotocol.proto
@@ -51,9 +51,10 @@ enum PixelFormat {
PixelFormatAscii = 9;
}
-// A message with info about the update stream.
+// A message that denotes the beginning of an updating rectangle in an update
+// stream packet.
// NEXT ID: 6
-message UpdateStreamPacketHeader {
+message UpdateStreamBeginRect {
// X,Y coordinates (in screen pixels) for origin of this update.
required int32 x = 1;
required int32 y = 2;
@@ -69,12 +70,28 @@ message UpdateStreamPacketHeader {
optional PixelFormat pixel_format = 6 [default=PixelFormatRgb24];
}
-// A message to denote a partial update stream.
+// A message that contains partial data for updating an rectangle in an
+// update stream packet.
// NEXT ID: 3
+message UpdateStreamRectData {
+ // The sequence number of the partial data for updating a rectangle.
+ optional int32 sequence_number = 1 [default=0];
+
+ // The partial data for updating a rectangle.
+ required bytes data = 2;
+}
+
+// A message that denotes the end of an updating rectangle.
+// NEXT ID: 1
+message UpdateStreamEndRect {
+}
+
+// A message to denote a partial update stream.
+// NEXT ID: 4
message UpdateStreamPacketMessage {
- // TODO(garykac): Make this required and fix unit tests.
- optional UpdateStreamPacketHeader header = 2;
- optional bytes data = 1;
+ optional UpdateStreamBeginRect begin_rect = 1;
+ optional UpdateStreamRectData rect_data = 2;
+ optional UpdateStreamEndRect end_rect = 3;
}
// Defines the message that is sent from the host to the client.
« no previous file with comments | « no previous file | remoting/base/protocol_decoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698