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

Unified 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: Reviewer's Feedback Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: remoting/client/plugin/pepper_video_renderer.h
diff --git a/remoting/client/plugin/pepper_video_renderer.h b/remoting/client/plugin/pepper_video_renderer.h
index 802a29c80ac3de52c5ceaf9919b49fdc9e3f5c50..fcac1de0171e41f353d3ff3c946f5a394a81da52 100644
--- a/remoting/client/plugin/pepper_video_renderer.h
+++ b/remoting/client/plugin/pepper_video_renderer.h
@@ -46,12 +46,10 @@ class PepperVideoRenderer : public protocol::VideoRenderer {
const webrtc::DesktopRegion& dirty_region) = 0;
};
- // Initializes the renderer. |instance| and |event_handler| must outlive the
- // renderer. Returns false if the renderer cannot be initialized.
- virtual bool Initialize(pp::Instance* instance,
- const ClientContext& context,
- EventHandler* event_handler,
- protocol::PerformanceTracker* perf_tracker) = 0;
+ // Sets pepper context. Must be called before Initialize(). |instance| and
+ // |event_handler| must outlive the renderer.
+ virtual void SetPepperContext(pp::Instance* instance,
+ EventHandler* event_handler) = 0;
// Must be called whenever the plugin view changes.
virtual void OnViewChanged(const pp::View& view) = 0;

Powered by Google App Engine
This is Rietveld 408576698