Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(332)

Unified Diff: remoting/client/ios/display/gl_display_handler.h

Issue 2856933007: [Remoting iOS] Basic viewport manipulation support (Closed)
Patch Set: break strong reference loops using __weak Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: remoting/client/ios/display/gl_display_handler.h
diff --git a/remoting/client/ios/display/gl_display_handler.h b/remoting/client/ios/display/gl_display_handler.h
index d6e7fe301b702051cb49901ee003620fb0ae25cf..a0fc57ebe84cb110deab7e58c6fa222c4727cf92 100644
--- a/remoting/client/ios/display/gl_display_handler.h
+++ b/remoting/client/ios/display/gl_display_handler.h
@@ -7,10 +7,11 @@
#import <Foundation/Foundation.h>
#import <GLKit/GLKit.h>
-
-#import "remoting/client/display/sys_opengl.h"
+#include <array>
#include "base/memory/ptr_util.h"
+#import "remoting/client/display/sys_opengl.h"
+#include "remoting/client/view_matrix.h"
namespace remoting {
@@ -24,17 +25,28 @@ class CursorShapeStub;
} // namespace protocol
} // namespace remoting
+@protocol GlDisplayHandlerDelegate<NSObject>
+
+// Notifies the delegate that the size of the desktop image has changed.
+- (void)canvasSizeChanged:(CGSize)size;
+
+@end
+
@interface GlDisplayHandler : NSObject {
}
- (void)stop;
+- (void)setDelegate:(id<GlDisplayHandlerDelegate>)delegate;
+
// Called once the GLKView created.
- (void)onSurfaceCreated:(GLKView*)view;
// Called every time the GLKView dimension is initialized or changed.
- (void)onSurfaceChanged:(const CGRect&)frame;
+- (void)onPixelTransformationChanged:(const remoting::ViewMatrix&)matrix;
+
- (std::unique_ptr<remoting::protocol::VideoRenderer>)CreateVideoRenderer;
- (std::unique_ptr<remoting::protocol::CursorShapeStub>)CreateCursorShapeStub;

Powered by Google App Engine
This is Rietveld 408576698