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

Unified Diff: remoting/client/x11_client.cc

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/client/rectangle_update_decoder.cc ('k') | remoting/client/x11_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/x11_client.cc
diff --git a/remoting/client/x11_client.cc b/remoting/client/x11_client.cc
index fd3f4106f4e1f88f65ddbaeeb14f308dcb562976..258f20f48ddc0b7b77aab5808ace538dd8d78a9e 100644
--- a/remoting/client/x11_client.cc
+++ b/remoting/client/x11_client.cc
@@ -11,6 +11,7 @@
#include "remoting/client/client_config.h"
#include "remoting/client/client_util.h"
#include "remoting/client/jingle_host_connection.h"
+#include "remoting/client/rectangle_update_decoder.h"
#include "remoting/client/x11_view.h"
#include "remoting/client/x11_input_handler.h"
@@ -31,9 +32,12 @@ int main(int argc, char** argv) {
remoting::ClientContext context;
remoting::JingleHostConnection connection(&context);
remoting::X11View view;
+ remoting::RectangleUpdateDecoder rectangle_decoder(
+ context.decode_message_loop(), &view);
remoting::X11InputHandler input_handler(&context, &connection, &view);
- remoting::ChromotingClient client(config, &context, &connection, &view,
- &input_handler, NewRunnableFunction(&ClientQuit, &ui_loop));
+ remoting::ChromotingClient client(
+ config, &context, &connection, &view, &rectangle_decoder, &input_handler,
+ NewRunnableFunction(&ClientQuit, &ui_loop));
// Run the client on a new MessageLoop until
context.Start();
« no previous file with comments | « remoting/client/rectangle_update_decoder.cc ('k') | remoting/client/x11_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698