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

Unified Diff: remoting/base/encoder_zlib.h

Issue 3305001: Move decoder into separate thread, clean up API layering, and redo update protocl (Closed)
Patch Set: Fix compile error. Created 10 years, 2 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 | « remoting/base/encode_decode_unittest.cc ('k') | remoting/base/encoder_zlib.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/encoder_zlib.h
diff --git a/remoting/base/encoder_zlib.h b/remoting/base/encoder_zlib.h
index 0c88e7ecd550cb47a86fbde491e68331e0dc95df..6ed8365080909308d97c3e12d74c80d0befb3517 100644
--- a/remoting/base/encoder_zlib.h
+++ b/remoting/base/encoder_zlib.h
@@ -31,9 +31,13 @@ class EncoderZlib : public Encoder {
void EncodeRect(CompressorZlib* compressor, const gfx::Rect& rect,
size_t rect_index);
- // Create a new ChromotingHostMessage with the right flag and attributes.
- // The message can be used immediately for output of encoding.
- ChromotingHostMessage* PrepareMessage(const gfx::Rect* rect);
+ // Marks a packets as the first in a series of rectangle updates.
+ void PrepareUpdateStart(const gfx::Rect& rect,
+ RectangleUpdatePacket* update);
+
+ // Retrieves a pointer to the output buffer in |update| used for storing the
+ // encoded rectangle data. Will resize the buffer to |size|.
+ uint8* GetOutputBuffer(RectangleUpdatePacket* update, size_t size);
// Submit |message| to |callback_|.
void SubmitMessage(ChromotingHostMessage* message, size_t rect_index);
« no previous file with comments | « remoting/base/encode_decode_unittest.cc ('k') | remoting/base/encoder_zlib.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698