summaryrefslogtreecommitdiffstats
path: root/remoting/client/x11_client.cc
diff options
context:
space:
mode:
authorsimonmorris@chromium.org <simonmorris@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-03 16:42:13 +0000
committersimonmorris@chromium.org <simonmorris@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-03 16:42:13 +0000
commit804443aef39615edd5b731aa5bfb3c611aeae697 (patch)
treec999531d0dff5352a1f88fa25e5df50a2996ed70 /remoting/client/x11_client.cc
parente05eb1d621ca0a26e0b33c650d4dbf456dba6863 (diff)
downloadchromium_src-804443aef39615edd5b731aa5bfb3c611aeae697.zip
chromium_src-804443aef39615edd5b731aa5bfb3c611aeae697.tar.gz
chromium_src-804443aef39615edd5b731aa5bfb3c611aeae697.tar.bz2
Let the host change resolution.
The screen size flows through the video pipeline, instead of being set statically when that pipeline is constructed. Only the Windows host actually detects when the screen size has changed. BUG=72469 TEST=none Review URL: http://codereview.chromium.org/6573005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76747 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/client/x11_client.cc')
-rw-r--r--remoting/client/x11_client.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/remoting/client/x11_client.cc b/remoting/client/x11_client.cc
index 7bfd3b4..5d0867f 100644
--- a/remoting/client/x11_client.cc
+++ b/remoting/client/x11_client.cc
@@ -34,11 +34,12 @@ int main(int argc, char** argv) {
remoting::ClientContext context;
remoting::protocol::ConnectionToHost connection(context.jingle_thread());
remoting::X11View view;
- remoting::RectangleUpdateDecoder rectangle_decoder(
- context.decode_message_loop(), &view);
+ scoped_refptr<remoting::RectangleUpdateDecoder> rectangle_decoder =
+ new remoting::RectangleUpdateDecoder(context.decode_message_loop(),
+ &view);
remoting::X11InputHandler input_handler(&context, &connection, &view);
remoting::ChromotingClient client(
- config, &context, &connection, &view, &rectangle_decoder, &input_handler,
+ config, &context, &connection, &view, rectangle_decoder, &input_handler,
NewRunnableFunction(&ClientQuit, &ui_loop));
// Run the client on a new MessageLoop until