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_H_ | 5 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_H_ |
6 #define REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_H_ | 6 #define REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_H_ |
7 | 7 |
8 #include "remoting/client/video_renderer.h" | 8 #include "remoting/protocol/video_renderer.h" |
9 | 9 |
10 namespace webrtc { | 10 namespace webrtc { |
11 class DesktopSize; | 11 class DesktopSize; |
12 class DesktopVector; | 12 class DesktopVector; |
13 class DesktopRegion; | 13 class DesktopRegion; |
14 } // namespace webrtc | 14 } // namespace webrtc |
15 | 15 |
16 namespace pp { | 16 namespace pp { |
17 class Instance; | 17 class Instance; |
18 class View; | 18 class View; |
19 } // namespace pp | 19 } // namespace pp |
20 | 20 |
21 namespace remoting { | 21 namespace remoting { |
22 | 22 |
23 class ClientContext; | 23 class ClientContext; |
24 | 24 |
25 namespace protocol { | 25 namespace protocol { |
26 class PerformanceTracker; | 26 class PerformanceTracker; |
27 } // namespace protocol | 27 } // namespace protocol |
28 | 28 |
29 // Interface for video renderers that render video in pepper plugin. | 29 // Interface for video renderers that render video in pepper plugin. |
30 class PepperVideoRenderer : public VideoRenderer { | 30 class PepperVideoRenderer : public protocol::VideoRenderer { |
31 public: | 31 public: |
32 class EventHandler { | 32 class EventHandler { |
33 public: | 33 public: |
34 EventHandler() {} | 34 EventHandler() {} |
35 virtual ~EventHandler() {} | 35 virtual ~EventHandler() {} |
36 | 36 |
37 // Called if video decoding fails, for any reason. | 37 // Called if video decoding fails, for any reason. |
38 virtual void OnVideoDecodeError() = 0; | 38 virtual void OnVideoDecodeError() = 0; |
39 | 39 |
40 // Called when the first frame is received. | 40 // Called when the first frame is received. |
(...skipping 24 matching lines...) Expand all Loading... |
65 virtual void OnViewChanged(const pp::View& view) = 0; | 65 virtual void OnViewChanged(const pp::View& view) = 0; |
66 | 66 |
67 // Enables or disables delivery of dirty region information to the | 67 // Enables or disables delivery of dirty region information to the |
68 // EventHandler, for debugging purposes. | 68 // EventHandler, for debugging purposes. |
69 virtual void EnableDebugDirtyRegion(bool enable) = 0; | 69 virtual void EnableDebugDirtyRegion(bool enable) = 0; |
70 }; | 70 }; |
71 | 71 |
72 } // namespace remoting | 72 } // namespace remoting |
73 | 73 |
74 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_H_ | 74 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_H_ |
OLD | NEW |