OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef REMOTING_CLIENT_IOS_APP_HOST_VIEW_CONTROLLER_H_ | 5 #ifndef REMOTING_IOS_APP_HOST_VIEW_CONTROLLER_H_ |
6 #define REMOTING_CLIENT_IOS_APP_HOST_VIEW_CONTROLLER_H_ | 6 #define REMOTING_IOS_APP_HOST_VIEW_CONTROLLER_H_ |
7 | 7 |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
10 #include "remoting/client/ios/display/gl_display_handler.h" | 10 #include "remoting/ios/display/gl_display_handler.h" |
11 | 11 |
12 @class RemotingClient; | 12 @class RemotingClient; |
13 | 13 |
14 // We don't inherit it from GLKViewController since it uses its rendering loop, | 14 // We don't inherit it from GLKViewController since it uses its rendering loop, |
15 // which will swap buffers when the GLRenderer is writing and causes screen | 15 // which will swap buffers when the GLRenderer is writing and causes screen |
16 // tearing issues. Instead we use GlDisplayHandler to handle the rendering loop. | 16 // tearing issues. Instead we use GlDisplayHandler to handle the rendering loop. |
17 @interface HostViewController : UIViewController | 17 @interface HostViewController : UIViewController |
18 | 18 |
19 - (id)initWithClient:(RemotingClient*)client; | 19 - (id)initWithClient:(RemotingClient*)client; |
20 | 20 |
21 @end | 21 @end |
22 | 22 |
23 #endif // REMOTING_CLIENT_IOS_APP_REMOTING_HOST_VIEW_CONTROLLER_H_ | 23 #endif // REMOTING_IOS_APP_REMOTING_HOST_VIEW_CONTROLLER_H_ |
OLD | NEW |