| 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 #if !defined(__has_feature) || !__has_feature(objc_arc) | 5 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 6 #error "This file requires ARC support." | 6 #error "This file requires ARC support." |
| 7 #endif | 7 #endif |
| 8 | 8 |
| 9 #include <array> | 9 #include <array> |
| 10 | 10 |
| 11 #import "remoting/ios/display/gl_display_handler.h" | 11 #import "remoting/ios/display/gl_display_handler.h" |
| 12 | 12 |
| 13 #import "base/mac/bind_objc_block.h" | 13 #import "base/mac/bind_objc_block.h" |
| 14 #import "remoting/client/display/sys_opengl.h" | 14 #import "remoting/client/display/sys_opengl.h" |
| 15 #import "remoting/ios/display/gl_demo_screen.h" | 15 #import "remoting/ios/display/gl_demo_screen.h" |
| 16 | 16 |
| 17 #include "base/bind.h" | 17 #include "base/bind.h" |
| 18 #include "base/macros.h" | 18 #include "base/macros.h" |
| 19 #include "base/memory/ptr_util.h" | 19 #include "base/memory/ptr_util.h" |
| 20 #include "base/memory/weak_ptr.h" | 20 #include "base/memory/weak_ptr.h" |
| 21 #include "remoting/client/chromoting_client_runtime.h" | 21 #include "remoting/client/chromoting_client_runtime.h" |
| 22 #include "remoting/client/cursor_shape_stub_proxy.h" | 22 #include "remoting/client/cursor_shape_stub_proxy.h" |
| 23 #include "remoting/client/display/gl_canvas.h" | 23 #include "remoting/client/display/gl_canvas.h" |
| 24 #include "remoting/client/display/gl_renderer.h" | 24 #include "remoting/client/display/gl_renderer.h" |
| 25 #include "remoting/client/display/gl_renderer_delegate.h" | 25 #include "remoting/client/display/gl_renderer_delegate.h" |
| 26 #include "remoting/client/display/renderer_proxy.h" |
| 26 #include "remoting/client/dual_buffer_frame_consumer.h" | 27 #include "remoting/client/dual_buffer_frame_consumer.h" |
| 27 #include "remoting/client/software_video_renderer.h" | 28 #include "remoting/client/software_video_renderer.h" |
| 28 #include "remoting/client/ui/renderer_proxy.h" | |
| 29 | 29 |
| 30 namespace remoting { | 30 namespace remoting { |
| 31 | 31 |
| 32 class ViewMatrix; | 32 class ViewMatrix; |
| 33 | 33 |
| 34 namespace GlDisplayHandler { | 34 namespace GlDisplayHandler { |
| 35 | 35 |
| 36 // The core that lives on the display thread. | 36 // The core that lives on the display thread. |
| 37 class Core : public protocol::CursorShapeStub, public GlRendererDelegate { | 37 class Core : public protocol::CursorShapeStub, public GlRendererDelegate { |
| 38 public: | 38 public: |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 _core->GetWeakPtr(), delegate)); | 290 _core->GetWeakPtr(), delegate)); |
| 291 } | 291 } |
| 292 | 292 |
| 293 - (id<GlDisplayHandlerDelegate>)delegate { | 293 - (id<GlDisplayHandlerDelegate>)delegate { |
| 294 // Implementation is still required for UNAVAILABLE_ATTRIBUTE. | 294 // Implementation is still required for UNAVAILABLE_ATTRIBUTE. |
| 295 NOTREACHED(); | 295 NOTREACHED(); |
| 296 return nil; | 296 return nil; |
| 297 } | 297 } |
| 298 | 298 |
| 299 @end | 299 @end |
| OLD | NEW |