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

Side by Side Diff: remoting/client/plugin/pepper_video_renderer.h

Issue 1827043004: Remove shaped desktop support from remoting host and client. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 unified diff | Download patch
OLDNEW
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/protocol/video_renderer.h" 8 #include "remoting/protocol/video_renderer.h"
9 9
10 namespace webrtc { 10 namespace webrtc {
(...skipping 26 matching lines...) Expand all
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.
41 virtual void OnVideoFirstFrameReceived() = 0; 41 virtual void OnVideoFirstFrameReceived() = 0;
42 42
43 // Called when stream size changes. 43 // Called when stream size changes.
44 virtual void OnVideoSize(const webrtc::DesktopSize& size, 44 virtual void OnVideoSize(const webrtc::DesktopSize& size,
45 const webrtc::DesktopVector& dpi) = 0; 45 const webrtc::DesktopVector& dpi) = 0;
46 46
47 // Called when desktop shape changes. |shape| should be NULL if frames are
48 // un-shaped.
49 virtual void OnVideoShape(const webrtc::DesktopRegion* shape) = 0;
50
51 // Called with each frame's updated region, if EnableDebugDirtyRegion(true) 47 // Called with each frame's updated region, if EnableDebugDirtyRegion(true)
52 // was called. 48 // was called.
53 virtual void OnVideoFrameDirtyRegion( 49 virtual void OnVideoFrameDirtyRegion(
54 const webrtc::DesktopRegion& dirty_region) = 0; 50 const webrtc::DesktopRegion& dirty_region) = 0;
55 }; 51 };
56 52
57 // Initializes the renderer. |instance| and |event_handler| must outlive the 53 // Initializes the renderer. |instance| and |event_handler| must outlive the
58 // renderer. Returns false if the renderer cannot be initialized. 54 // renderer. Returns false if the renderer cannot be initialized.
59 virtual bool Initialize(pp::Instance* instance, 55 virtual bool Initialize(pp::Instance* instance,
60 const ClientContext& context, 56 const ClientContext& context,
61 EventHandler* event_handler, 57 EventHandler* event_handler,
62 protocol::PerformanceTracker* perf_tracker) = 0; 58 protocol::PerformanceTracker* perf_tracker) = 0;
63 59
64 // Must be called whenever the plugin view changes. 60 // Must be called whenever the plugin view changes.
65 virtual void OnViewChanged(const pp::View& view) = 0; 61 virtual void OnViewChanged(const pp::View& view) = 0;
66 62
67 // Enables or disables delivery of dirty region information to the 63 // Enables or disables delivery of dirty region information to the
68 // EventHandler, for debugging purposes. 64 // EventHandler, for debugging purposes.
69 virtual void EnableDebugDirtyRegion(bool enable) = 0; 65 virtual void EnableDebugDirtyRegion(bool enable) = 0;
70 }; 66 };
71 67
72 } // namespace remoting 68 } // namespace remoting
73 69
74 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_H_ 70 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_H_
OLDNEW
« no previous file with comments | « remoting/client/plugin/chromoting_instance.cc ('k') | remoting/client/plugin/pepper_video_renderer_2d.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698