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

Unified Diff: remoting/client/jni/jni_gl_display_handler.cc

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/client/display/gl_canvas.cc ('k') | remoting/ios/app/host_view_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/jni/jni_gl_display_handler.cc
diff --git a/remoting/client/jni/jni_gl_display_handler.cc b/remoting/client/jni/jni_gl_display_handler.cc
index 3b511399e4b354c0230d912cb89a46428e725fed..5d5d72bd75320f67bf87691d92a82eaec9de5d2a 100644
--- a/remoting/client/jni/jni_gl_display_handler.cc
+++ b/remoting/client/jni/jni_gl_display_handler.cc
@@ -159,6 +159,10 @@ void JniGlDisplayHandler::Core::SurfaceCreated(
void JniGlDisplayHandler::Core::SurfaceChanged(int width, int height) {
DCHECK(runtime_->display_task_runner()->BelongsToCurrentThread());
+ // Note that this doesn't resize the OpenGL viewport. The OpenGL viewport is
+ // initialized once it is first bound to the surface. We don't need to call
+ // glViewport() since the activity/surface is recreated and hence the viewport
+ // is re-initialized every time the surface size is changed.
renderer_->OnSurfaceChanged(width, height);
}
« no previous file with comments | « remoting/client/display/gl_canvas.cc ('k') | remoting/ios/app/host_view_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698