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

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

Issue 2879743002: [CRD iOS] Hook the touch input feedback (Closed)
Patch Set: Fix dependency and race condition 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 0d88f5830d22ee19eeae8214e0372b50e0dff774..8208fbc05156f74aa717173830d435caa8cddade 100644
--- a/remoting/ios/session/remoting_client.mm
+++ b/remoting/ios/session/remoting_client.mm
@@ -21,6 +21,7 @@
#include "remoting/client/chromoting_session.h"
#include "remoting/client/connect_to_host_info.h"
#include "remoting/client/ui/gesture_interpreter.h"
+#include "remoting/client/ui/renderer_proxy.h"
#include "remoting/ios/session/remoting_client_session_delegate.h"
#include "remoting/protocol/session.h"
#include "remoting/protocol/video_renderer.h"
@@ -39,6 +40,7 @@ NSString* const kHostSessionPin = @"kHostSessionPin";
ClientSessionDetails* _sessionDetails;
// Call _secretFetchedCallback on the network thread.
remoting::protocol::SecretFetchedCallback _secretFetchedCallback;
+ std::unique_ptr<remoting::RendererProxy> _renderer;
std::unique_ptr<remoting::GestureInterpreter> _gestureInterpreter;
// std::unique_ptr<remoting::KeyboardInterpreter> _keyboardInterpreter;
}
@@ -121,12 +123,10 @@ NSString* const kHostSessionPin = @"kHostSessionPin";
[_displayHandler CreateVideoRenderer], audioPlayer, info,
client_auth_config));
- __weak GlDisplayHandler* weakDisplayHandler = _displayHandler;
- _gestureInterpreter.reset(new remoting::GestureInterpreter(
- base::BindBlockArc(^(const remoting::ViewMatrix& matrix) {
- [weakDisplayHandler onPixelTransformationChanged:matrix];
- }),
- _session.get()));
+ _renderer = [_displayHandler CreateRendererProxy];
+
+ _gestureInterpreter.reset(
+ new remoting::GestureInterpreter(_renderer.get(), _session.get()));
_session->Connect();
}
« 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