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

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

Issue 2101833002: [Remoting Android] DisplayUpdaterFactory cleanups (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/protocol/video_renderer.h" 8 #include "remoting/protocol/video_renderer.h"
9 9
10 namespace webrtc { 10 namespace webrtc {
(...skipping 30 matching lines...) Expand all
41 virtual void OnVideoFirstFrameReceived() = 0; 41 virtual void OnVideoFirstFrameReceived() = 0;
42 42
43 // Called with each frame's updated region, if EnableDebugDirtyRegion(true) 43 // Called with each frame's updated region, if EnableDebugDirtyRegion(true)
44 // was called. 44 // was called.
45 virtual void OnVideoFrameDirtyRegion( 45 virtual void OnVideoFrameDirtyRegion(
46 const webrtc::DesktopRegion& dirty_region) = 0; 46 const webrtc::DesktopRegion& dirty_region) = 0;
47 }; 47 };
48 48
49 // Initializes the renderer. |instance| and |event_handler| must outlive the 49 // Initializes the renderer. |instance| and |event_handler| must outlive the
50 // renderer. Returns false if the renderer cannot be initialized. 50 // renderer. Returns false if the renderer cannot be initialized.
51 virtual bool Initialize(pp::Instance* instance, 51 virtual bool InitializePepper(pp::Instance* instance,
Sergey Ulanov 2016/06/28 17:59:50 This now overlaps with Initialize(). Remove |conte
Yuwei 2016/06/28 18:46:06 Done.
52 const ClientContext& context, 52 const ClientContext& context,
53 EventHandler* event_handler, 53 EventHandler* event_handler,
54 protocol::PerformanceTracker* perf_tracker) = 0; 54 protocol::PerformanceTracker* perf_tracker) = 0;
55 55
56 // Must be called whenever the plugin view changes. 56 // Must be called whenever the plugin view changes.
57 virtual void OnViewChanged(const pp::View& view) = 0; 57 virtual void OnViewChanged(const pp::View& view) = 0;
58 58
59 // Enables or disables delivery of dirty region information to the 59 // Enables or disables delivery of dirty region information to the
60 // EventHandler, for debugging purposes. 60 // EventHandler, for debugging purposes.
61 virtual void EnableDebugDirtyRegion(bool enable) = 0; 61 virtual void EnableDebugDirtyRegion(bool enable) = 0;
62 }; 62 };
63 63
64 } // namespace remoting 64 } // namespace remoting
65 65
66 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_H_ 66 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698