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_CLIENT_IOS_APP_HOST_VIEW_CONTROLLER_H_ |
6 #define REMOTING_CLIENT_IOS_APP_HOST_VIEW_CONTROLLER_H_ | 6 #define REMOTING_CLIENT_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" |
| 11 |
10 @class RemotingClient; | 12 @class RemotingClient; |
11 | 13 |
12 // 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, |
13 // 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 |
14 // tearing issues. Instead we use GlDisplayHandler to handle the rendering loop. | 16 // tearing issues. Instead we use GlDisplayHandler to handle the rendering loop. |
15 @interface HostViewController : UIViewController | 17 @interface HostViewController : UIViewController<GlDisplayHandlerDelegate> |
16 | 18 |
17 - (id)initWithClient:(RemotingClient*)client; | 19 - (id)initWithClient:(RemotingClient*)client; |
18 | 20 |
19 @end | 21 @end |
20 | 22 |
21 #endif // REMOTING_CLIENT_IOS_APP_REMOTING_HOST_VIEW_CONTROLLER_H_ | 23 #endif // REMOTING_CLIENT_IOS_APP_REMOTING_HOST_VIEW_CONTROLLER_H_ |
OLD | NEW |