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> | 8 #import <Foundation/Foundation.h> |
9 #import <GLKit/GLKit.h> | 9 #import <GLKit/GLKit.h> |
10 | 10 #include <array> |
nicholss
2017/05/03 22:47:35
new line between #import and include
Where are y
Yuwei
2017/05/04 00:28:07
Removed. Not used anymore.
| |
11 #import "remoting/client/display/sys_opengl.h" | |
12 | 11 |
13 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
13 #import "remoting/client/display/sys_opengl.h" | |
nicholss
2017/05/03 22:47:35
sort the includes, #imports first
Yuwei
2017/05/04 00:28:07
Done.
| |
14 #include "remoting/client/view_matrix.h" | |
14 | 15 |
15 namespace remoting { | 16 namespace remoting { |
16 | 17 |
17 class ChromotingClientRuntime; | 18 class ChromotingClientRuntime; |
18 | 19 |
19 namespace protocol { | 20 namespace protocol { |
20 | 21 |
21 class VideoRenderer; | 22 class VideoRenderer; |
22 class CursorShapeStub; | 23 class CursorShapeStub; |
23 | 24 |
24 } // namespace protocol | 25 } // namespace protocol |
25 } // namespace remoting | 26 } // namespace remoting |
26 | 27 |
28 @protocol GlDisplayHandlerDelegate<NSObject> | |
nicholss
2017/05/03 22:47:35
Can you also add a comment describing the what the
Yuwei
2017/05/04 00:28:07
Done.
| |
29 | |
30 // Notifies the delegate that the size of the desktop image has changed. | |
31 - (void)canvasSizeChanged:(CGSize)size; | |
32 | |
33 @end | |
34 | |
27 @interface GlDisplayHandler : NSObject { | 35 @interface GlDisplayHandler : NSObject { |
28 } | 36 } |
29 | 37 |
30 - (void)stop; | 38 - (void)stop; |
31 | 39 |
40 - (void)setDelegate:(id<GlDisplayHandlerDelegate>)delegate; | |
nicholss
2017/05/03 22:47:35
Better to use @property delegate, for example: htt
Yuwei
2017/05/04 00:28:07
Done. Manually synthesized with trick to disable t
| |
41 | |
32 // Called once the GLKView created. | 42 // Called once the GLKView created. |
33 - (void)onSurfaceCreated:(GLKView*)view; | 43 - (void)onSurfaceCreated:(GLKView*)view; |
34 | 44 |
35 // Called every time the GLKView dimension is initialized or changed. | 45 // Called every time the GLKView dimension is initialized or changed. |
36 - (void)onSurfaceChanged:(const CGRect&)frame; | 46 - (void)onSurfaceChanged:(const CGRect&)frame; |
37 | 47 |
48 - (void)onPixelTransformationChanged:(const remoting::ViewMatrix&)matrix; | |
49 | |
38 - (std::unique_ptr<remoting::protocol::VideoRenderer>)CreateVideoRenderer; | 50 - (std::unique_ptr<remoting::protocol::VideoRenderer>)CreateVideoRenderer; |
39 - (std::unique_ptr<remoting::protocol::CursorShapeStub>)CreateCursorShapeStub; | 51 - (std::unique_ptr<remoting::protocol::CursorShapeStub>)CreateCursorShapeStub; |
40 | 52 |
41 - (EAGLContext*)GetEAGLContext; | 53 - (EAGLContext*)GetEAGLContext; |
42 | 54 |
43 @end | 55 @end |
44 | 56 |
45 #endif // REMOTING_CLIENT_IOS_DISPLAY_GL_DISPLAY_HANDLER_H_ | 57 #endif // REMOTING_CLIENT_IOS_DISPLAY_GL_DISPLAY_HANDLER_H_ |
OLD | NEW |