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

Unified Diff: media/mojo/clients/mojo_renderer.h

Issue 2643713003: Allow to use the DefaultRendererFactory from a Utility Process (Closed)
Patch Set: Rebase Created 3 years, 10 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
« no previous file with comments | « media/mojo/clients/BUILD.gn ('k') | media/mojo/clients/mojo_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/clients/mojo_renderer.h
diff --git a/media/mojo/clients/mojo_renderer.h b/media/mojo/clients/mojo_renderer.h
index dd7576cbfc46d35f50a9caf62da4bd8a4e5fe291..b8350ad7d8160d4e4d7317ecebba8a3f51067cbf 100644
--- a/media/mojo/clients/mojo_renderer.h
+++ b/media/mojo/clients/mojo_renderer.h
@@ -27,6 +27,7 @@ namespace media {
class MediaResource;
class MojoDemuxerStreamImpl;
+class MojoVideoRendererSinkImpl;
class VideoOverlayFactory;
class VideoRendererSink;
@@ -103,6 +104,9 @@ class MojoRenderer : public Renderer, public mojom::RendererClient {
// indicates which stream the error happened on.
void OnDemuxerStreamConnectionError(MojoDemuxerStreamImpl* stream);
+ // Callback for connection error on |mojo_video_renderer_sink_|.
+ void OnVideoRendererSinkConnectionError();
+
// Callbacks for |remote_renderer_| methods.
void OnInitialized(media::RendererClient* client, bool success);
void OnFlushed();
@@ -159,6 +163,8 @@ class MojoRenderer : public Renderer, public mojom::RendererClient {
base::DefaultTickClock media_clock_;
media::TimeDeltaInterpolator media_time_interpolator_;
+ std::unique_ptr<MojoVideoRendererSinkImpl> mojo_video_renderer_sink_;
+
DISALLOW_COPY_AND_ASSIGN(MojoRenderer);
};
« no previous file with comments | « media/mojo/clients/BUILD.gn ('k') | media/mojo/clients/mojo_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698