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

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

Issue 2874143002: [CRD iOS] Some fixes for rendering (Closed)
Patch Set: Just use presentRenderbuffer to swap buffers 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 6429c2cd4e19036000747dd8d5c6f6d133902202..939f428d1a8fe52a90b3b5d1e546ab22a5be6fc3 100644
--- a/remoting/ios/session/remoting_client.mm
+++ b/remoting/ios/session/remoting_client.mm
@@ -133,6 +133,7 @@ NSString* const kHostSessionPin = @"kHostSessionPin";
if (_session) {
_session->Disconnect();
}
+ _displayHandler = nil;
// TODO(nicholss): Do we need to cleanup more?
}
@@ -222,6 +223,8 @@ NSString* const kHostSessionPin = @"kHostSessionPin";
}
- (void)surfaceChanged:(const CGRect&)frame {
+ // Note that GLKView automatically sets the OpenGL viewport size to the size
+ // of the surface.
[_displayHandler onSurfaceChanged:frame];
_gestureInterpreter->OnSurfaceSizeChanged(frame.size.width,
frame.size.height);
« 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