Chromium Code Reviews| 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 |
| 11 #import "remoting/client/display/sys_opengl.h" | 11 #import "remoting/client/display/sys_opengl.h" |
| 12 | 12 |
| 13 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
| 14 #include "remoting/client/view_matrix.h" | |
| 15 | 14 |
| 16 namespace remoting { | 15 namespace remoting { |
| 17 | 16 |
| 18 class ChromotingClientRuntime; | 17 class ChromotingClientRuntime; |
| 18 class RendererFacade; | |
| 19 | 19 |
| 20 namespace protocol { | 20 namespace protocol { |
| 21 | 21 |
| 22 class VideoRenderer; | 22 class VideoRenderer; |
| 23 class CursorShapeStub; | 23 class CursorShapeStub; |
| 24 | 24 |
| 25 } // namespace protocol | 25 } // namespace protocol |
| 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 |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 41 } | 41 } |
| 42 | 42 |
| 43 - (void)stop; | 43 - (void)stop; |
| 44 | 44 |
| 45 // Called once the GLKView created. | 45 // Called once the GLKView created. |
| 46 - (void)onSurfaceCreated:(GLKView*)view; | 46 - (void)onSurfaceCreated:(GLKView*)view; |
| 47 | 47 |
| 48 // Called every time the GLKView dimension is initialized or changed. | 48 // Called every time the GLKView dimension is initialized or changed. |
| 49 - (void)onSurfaceChanged:(const CGRect&)frame; | 49 - (void)onSurfaceChanged:(const CGRect&)frame; |
| 50 | 50 |
| 51 - (void)onPixelTransformationChanged:(const remoting::ViewMatrix&)matrix; | 51 - (std::unique_ptr<remoting::RendererFacade>)CreateRendererFacade; |
|
nicholss
2017/05/15 15:49:40
Facade is the wrong word also.
Facade means to h
| |
| 52 | |
| 53 - (std::unique_ptr<remoting::protocol::VideoRenderer>)CreateVideoRenderer; | 52 - (std::unique_ptr<remoting::protocol::VideoRenderer>)CreateVideoRenderer; |
| 54 - (std::unique_ptr<remoting::protocol::CursorShapeStub>)CreateCursorShapeStub; | 53 - (std::unique_ptr<remoting::protocol::CursorShapeStub>)CreateCursorShapeStub; |
| 55 | 54 |
| 56 - (EAGLContext*)GetEAGLContext; | 55 - (EAGLContext*)GetEAGLContext; |
| 57 | 56 |
| 58 // This is write-only but @property doesn't support write-only modifier. | 57 // This is write-only but @property doesn't support write-only modifier. |
| 59 @property id<GlDisplayHandlerDelegate> delegate; | 58 @property id<GlDisplayHandlerDelegate> delegate; |
| 60 - (id<GlDisplayHandlerDelegate>)delegate UNAVAILABLE_ATTRIBUTE; | 59 - (id<GlDisplayHandlerDelegate>)delegate UNAVAILABLE_ATTRIBUTE; |
| 61 | 60 |
| 62 @end | 61 @end |
| 63 | 62 |
| 64 #endif // REMOTING_IOS_DISPLAY_GL_DISPLAY_HANDLER_H_ | 63 #endif // REMOTING_IOS_DISPLAY_GL_DISPLAY_HANDLER_H_ |
| OLD | NEW |