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

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

Issue 2869723007: [CRD iOS] Viewport fling animation (Closed)
Patch Set: 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
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
« remoting/client/ios/client_gestures.mm ('K') | « remoting/client/ios/display/gl_display_handler.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698