Chromium Code Reviews| Index: remoting/client/ios/session/remoting_client.mm |
| diff --git a/remoting/client/ios/session/remoting_client.mm b/remoting/client/ios/session/remoting_client.mm |
| index 3338641dd05570114f7838f6be232c2789727f7d..93da0851c1d16d0b72d3e0a0f64ec5b1bbda8a8c 100644 |
| --- a/remoting/client/ios/session/remoting_client.mm |
| +++ b/remoting/client/ios/session/remoting_client.mm |
| @@ -119,7 +119,6 @@ NSString* const kHostSessionPin = @"kHostSessionPin"; |
| _sessonDelegate->GetWeakPtr(), [_displayHandler CreateCursorShapeStub], |
| [_displayHandler CreateVideoRenderer], audioPlayer, info, |
| client_auth_config)); |
| - _session->Connect(); |
| __weak GlDisplayHandler* weakDisplayHandler = _displayHandler; |
| _gestureInterpreter.reset(new remoting::GestureInterpreter( |
| @@ -127,6 +126,8 @@ NSString* const kHostSessionPin = @"kHostSessionPin"; |
| [weakDisplayHandler onPixelTransformationChanged:matrix]; |
| }), |
| _session.get())); |
| + |
| + _session->Connect(); |
| } |
| - (void)disconnectFromHost { |
| @@ -230,9 +231,11 @@ NSString* const kHostSessionPin = @"kHostSessionPin"; |
| #pragma mark - GlDisplayHandlerDelegate |
| - (void)canvasSizeChanged:(CGSize)size { |
| - if (_gestureInterpreter) { |
|
Yuwei
2017/05/10 06:53:03
Removed the check since canvasSizeChanged will onl
|
| - _gestureInterpreter->OnDesktopSizeChanged(size.width, size.height); |
| - } |
| + _gestureInterpreter->OnDesktopSizeChanged(size.width, size.height); |
| +} |
| + |
| +- (void)rendererTicked { |
| + _gestureInterpreter->ProcessAnimations(); |
| } |
| @end |