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

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

Issue 1236663002: Allow shaped-desktop hosts to send shape only when it changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Pepper 2D renderer build Created 5 years, 5 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/client/video_renderer.h" 8 #include "remoting/client/video_renderer.h"
9 9
10 namespace webrtc { 10 namespace webrtc {
(...skipping 22 matching lines...) Expand all
33 // Called if video decoding fails, for any reason. 33 // Called if video decoding fails, for any reason.
34 virtual void OnVideoDecodeError() = 0; 34 virtual void OnVideoDecodeError() = 0;
35 35
36 // Called when the first frame is received. 36 // Called when the first frame is received.
37 virtual void OnVideoFirstFrameReceived() = 0; 37 virtual void OnVideoFirstFrameReceived() = 0;
38 38
39 // Called when stream size changes. 39 // Called when stream size changes.
40 virtual void OnVideoSize(const webrtc::DesktopSize& size, 40 virtual void OnVideoSize(const webrtc::DesktopSize& size,
41 const webrtc::DesktopVector& dpi) = 0; 41 const webrtc::DesktopVector& dpi) = 0;
42 42
43 // Called when desktop shape changes. 43 // Called when desktop shape changes. |shape| should be NULL if frames are
44 virtual void OnVideoShape(const webrtc::DesktopRegion& shape) = 0; 44 // un-shaped.
45 virtual void OnVideoShape(const webrtc::DesktopRegion* shape) = 0;
45 46
46 // Called with each frame's updated region, if EnableDebugDirtyRegion(true) 47 // Called with each frame's updated region, if EnableDebugDirtyRegion(true)
47 // was called. 48 // was called.
48 virtual void OnVideoFrameDirtyRegion( 49 virtual void OnVideoFrameDirtyRegion(
49 const webrtc::DesktopRegion& dirty_region) = 0; 50 const webrtc::DesktopRegion& dirty_region) = 0;
50 }; 51 };
51 52
52 // Initializes the renderer. |instance| and |event_handler| must outlive the 53 // Initializes the renderer. |instance| and |event_handler| must outlive the
53 // renderer. Returns false if the renderer cannot be initialized. 54 // renderer. Returns false if the renderer cannot be initialized.
54 virtual bool Initialize(pp::Instance* instance, 55 virtual bool Initialize(pp::Instance* instance,
55 const ClientContext& context, 56 const ClientContext& context,
56 EventHandler* event_handler) = 0; 57 EventHandler* event_handler) = 0;
57 58
58 // Must be called whenever the plugin view changes. 59 // Must be called whenever the plugin view changes.
59 virtual void OnViewChanged(const pp::View& view) = 0; 60 virtual void OnViewChanged(const pp::View& view) = 0;
60 61
61 // Enables or disables delivery of dirty region information to the 62 // Enables or disables delivery of dirty region information to the
62 // EventHandler, for debugging purposes. 63 // EventHandler, for debugging purposes.
63 virtual void EnableDebugDirtyRegion(bool enable) = 0; 64 virtual void EnableDebugDirtyRegion(bool enable) = 0;
64 }; 65 };
65 66
66 } // namespace remoting 67 } // namespace remoting
67 68
68 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_H_ 69 #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