| 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_DISPLAY_GL_DISPLAY_HANDLER_H_ | 5 #ifndef REMOTING_CLIENT_IOS_DISPLAY_GL_DISPLAY_HANDLER_H_ |
| 6 #define REMOTING_CLIENT_IOS_DISPLAY_GL_DISPLAY_HANDLER_H_ | 6 #define REMOTING_CLIENT_IOS_DISPLAY_GL_DISPLAY_HANDLER_H_ |
| 7 | 7 |
| 8 #import <Foundation/Foundation.h> |
| 9 #import <GLKit/GLKit.h> |
| 10 |
| 8 #import "remoting/client/display/sys_opengl.h" | 11 #import "remoting/client/display/sys_opengl.h" |
| 12 |
| 9 #include "remoting/client/client_context.h" | 13 #include "remoting/client/client_context.h" |
| 14 #include "remoting/protocol/cursor_shape_stub.h" |
| 10 #include "remoting/protocol/frame_consumer.h" | 15 #include "remoting/protocol/frame_consumer.h" |
| 11 #include "remoting/protocol/video_renderer.h" | 16 #include "remoting/protocol/video_renderer.h" |
| 12 | 17 |
| 13 namespace remoting { | 18 namespace remoting { |
| 14 namespace ios { | |
| 15 | 19 |
| 16 class AppRuntime; | 20 class ChromotingClientRuntime; |
| 17 | 21 |
| 18 } // namespace ios | |
| 19 } // namespace remoting | 22 } // namespace remoting |
| 20 | 23 |
| 21 @interface GlDisplayHandler : NSObject { | 24 @interface GlDisplayHandler : NSObject { |
| 22 } | 25 } |
| 23 | 26 |
| 24 - (id)initWithRuntime:(remoting::ios::AppRuntime*)runtime; | 27 - (id)initWithRuntime:(remoting::ChromotingClientRuntime*)runtime; |
| 25 | 28 |
| 26 - (void)created; | 29 - (void)created; |
| 30 - (void)stop; |
| 27 - (void)glkView:(GLKView*)view drawInRect:(CGRect)rect; | 31 - (void)glkView:(GLKView*)view drawInRect:(CGRect)rect; |
| 28 - (std::unique_ptr<remoting::protocol::VideoRenderer>)CreateVideoRenderer; | 32 - (std::unique_ptr<remoting::protocol::VideoRenderer>)CreateVideoRenderer; |
| 33 - (std::unique_ptr<remoting::protocol::CursorShapeStub>)CreateCursorShapeStub; |
| 29 | 34 |
| 30 @end | 35 @end |
| 31 | 36 |
| 32 #endif // REMOTING_CLIENT_IOS_DISPLAY_GL_DISPLAY_HANDLER_H_ | 37 #endif // REMOTING_CLIENT_IOS_DISPLAY_GL_DISPLAY_HANDLER_H_ |
| OLD | NEW |