| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PLUGIN_PEPPER_VIDEO_RENDERER_2D_H_ | 5 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_2D_H_ |
| 6 #define REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_2D_H_ | 6 #define REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_2D_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "remoting/client/software_video_renderer.h" | 22 #include "remoting/client/software_video_renderer.h" |
| 23 #include "remoting/protocol/frame_consumer.h" | 23 #include "remoting/protocol/frame_consumer.h" |
| 24 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" | 24 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" |
| 25 | 25 |
| 26 namespace base { | 26 namespace base { |
| 27 class ScopedClosureRunner; | 27 class ScopedClosureRunner; |
| 28 } // namespace base | 28 } // namespace base |
| 29 | 29 |
| 30 namespace webrtc { | 30 namespace webrtc { |
| 31 class DesktopFrame; | 31 class DesktopFrame; |
| 32 class SharedDesktopFrame; | |
| 33 } // namespace webrtc | 32 } // namespace webrtc |
| 34 | 33 |
| 35 namespace remoting { | 34 namespace remoting { |
| 36 | 35 |
| 37 class SoftwareVideoRenderer; | 36 class SoftwareVideoRenderer; |
| 38 | 37 |
| 39 // Video renderer that wraps SoftwareVideoRenderer and displays it using Pepper | 38 // Video renderer that wraps SoftwareVideoRenderer and displays it using Pepper |
| 40 // 2D graphics API. | 39 // 2D graphics API. |
| 41 class PepperVideoRenderer2D : public PepperVideoRenderer, | 40 class PepperVideoRenderer2D : public PepperVideoRenderer, |
| 42 public protocol::FrameConsumer { | 41 public protocol::FrameConsumer { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 105 |
| 107 pp::CompletionCallbackFactory<PepperVideoRenderer2D> callback_factory_; | 106 pp::CompletionCallbackFactory<PepperVideoRenderer2D> callback_factory_; |
| 108 base::WeakPtrFactory<PepperVideoRenderer2D> weak_factory_; | 107 base::WeakPtrFactory<PepperVideoRenderer2D> weak_factory_; |
| 109 | 108 |
| 110 DISALLOW_COPY_AND_ASSIGN(PepperVideoRenderer2D); | 109 DISALLOW_COPY_AND_ASSIGN(PepperVideoRenderer2D); |
| 111 }; | 110 }; |
| 112 | 111 |
| 113 } // namespace remoting | 112 } // namespace remoting |
| 114 | 113 |
| 115 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_2D_H_ | 114 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_2D_H_ |
| OLD | NEW |