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_IOS_DISPLAY_GL_DISPLAY_HANDLER_H_ | 5 #ifndef REMOTING_IOS_DISPLAY_GL_DISPLAY_HANDLER_H_ |
6 #define REMOTING_IOS_DISPLAY_GL_DISPLAY_HANDLER_H_ | 6 #define REMOTING_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 |
(...skipping 15 matching lines...) Expand all Loading... |
26 } // namespace remoting | 26 } // namespace remoting |
27 | 27 |
28 // This protocol is for receiving notifications from the renderer when its state | 28 // This protocol is for receiving notifications from the renderer when its state |
29 // changes. Implementations can use this to reposition viewport, process | 29 // changes. Implementations can use this to reposition viewport, process |
30 // animations, etc. | 30 // animations, etc. |
31 @protocol GlDisplayHandlerDelegate<NSObject> | 31 @protocol GlDisplayHandlerDelegate<NSObject> |
32 | 32 |
33 // Notifies the delegate that the size of the desktop image has changed. | 33 // Notifies the delegate that the size of the desktop image has changed. |
34 - (void)canvasSizeChanged:(CGSize)size; | 34 - (void)canvasSizeChanged:(CGSize)size; |
35 | 35 |
| 36 - (void)rendererTicked; |
| 37 |
36 @end | 38 @end |
37 | 39 |
38 @interface GlDisplayHandler : NSObject { | 40 @interface GlDisplayHandler : NSObject { |
39 } | 41 } |
40 | 42 |
41 - (void)stop; | 43 - (void)stop; |
42 | 44 |
43 // Called once the GLKView created. | 45 // Called once the GLKView created. |
44 - (void)onSurfaceCreated:(GLKView*)view; | 46 - (void)onSurfaceCreated:(GLKView*)view; |
45 | 47 |
46 // Called every time the GLKView dimension is initialized or changed. | 48 // Called every time the GLKView dimension is initialized or changed. |
47 - (void)onSurfaceChanged:(const CGRect&)frame; | 49 - (void)onSurfaceChanged:(const CGRect&)frame; |
48 | 50 |
49 - (void)onPixelTransformationChanged:(const remoting::ViewMatrix&)matrix; | 51 - (void)onPixelTransformationChanged:(const remoting::ViewMatrix&)matrix; |
50 | 52 |
51 - (std::unique_ptr<remoting::protocol::VideoRenderer>)CreateVideoRenderer; | 53 - (std::unique_ptr<remoting::protocol::VideoRenderer>)CreateVideoRenderer; |
52 - (std::unique_ptr<remoting::protocol::CursorShapeStub>)CreateCursorShapeStub; | 54 - (std::unique_ptr<remoting::protocol::CursorShapeStub>)CreateCursorShapeStub; |
53 | 55 |
54 - (EAGLContext*)GetEAGLContext; | 56 - (EAGLContext*)GetEAGLContext; |
55 | 57 |
56 // This is write-only but @property doesn't support write-only modifier. | 58 // This is write-only but @property doesn't support write-only modifier. |
57 @property id<GlDisplayHandlerDelegate> delegate; | 59 @property id<GlDisplayHandlerDelegate> delegate; |
58 - (id<GlDisplayHandlerDelegate>)delegate UNAVAILABLE_ATTRIBUTE; | 60 - (id<GlDisplayHandlerDelegate>)delegate UNAVAILABLE_ATTRIBUTE; |
59 | 61 |
60 @end | 62 @end |
61 | 63 |
62 #endif // REMOTING_IOS_DISPLAY_GL_DISPLAY_HANDLER_H_ | 64 #endif // REMOTING_IOS_DISPLAY_GL_DISPLAY_HANDLER_H_ |
OLD | NEW |