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

Unified Diff: remoting/ios/session/remoting_client.mm

Issue 2869723007: [CRD iOS] Viewport fling animation (Closed)
Patch Set: Merge branch 'master' into feat-fling-animation Created 3 years, 7 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/ios/display/gl_display_handler.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/ios/session/remoting_client.mm
diff --git a/remoting/ios/session/remoting_client.mm b/remoting/ios/session/remoting_client.mm
index 939f428d1a8fe52a90b3b5d1e546ab22a5be6fc3..235400d0f504b75159e541800a6713e48f4f9961 100644
--- a/remoting/ios/session/remoting_client.mm
+++ b/remoting/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 {
@@ -233,9 +234,11 @@ NSString* const kHostSessionPin = @"kHostSessionPin";
#pragma mark - GlDisplayHandlerDelegate
- (void)canvasSizeChanged:(CGSize)size {
- if (_gestureInterpreter) {
- _gestureInterpreter->OnDesktopSizeChanged(size.width, size.height);
- }
+ _gestureInterpreter->OnDesktopSizeChanged(size.width, size.height);
+}
+
+- (void)rendererTicked {
+ _gestureInterpreter->ProcessAnimations();
}
@end
« no previous file with comments | « remoting/ios/display/gl_display_handler.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698