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

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

Issue 2282633002: Integrate Surface requests with MediaPlayerRenderer (Closed)
Patch Set: Addressed last comments Created 4 years, 2 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/base/android/stream_texture_wrapper.h ('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 4a6cd72080373e8d9182a8fe3c3e38736d1eee38..c8d34ac7e5fc1cdcccc6ffa5074fd017af699a98 100644
--- a/media/mojo/clients/mojo_renderer.h
+++ b/media/mojo/clients/mojo_renderer.h
@@ -9,6 +9,7 @@
#include "base/macros.h"
#include "base/time/default_tick_clock.h"
+#include "base/unguessable_token.h"
#include "media/base/demuxer_stream.h"
#include "media/base/renderer.h"
#include "media/base/time_delta_interpolator.h"
@@ -58,6 +59,14 @@ class MojoRenderer : public Renderer, public mojom::RendererClient {
bool HasAudio() override;
bool HasVideo() override;
+ using ReceiveSurfaceRequestTokenCB =
+ base::Callback<void(const base::UnguessableToken&)>;
+
+ // Asks |remote_renderer_| to register a request in the browser's
+ // ScopedSurfaceRequestManager, and returns the request's token.
+ void InitiateScopedSurfaceRequest(
+ const ReceiveSurfaceRequestTokenCB& receive_request_token_cb);
+
private:
// mojom::RendererClient implementation, dispatched on the
// |task_runner_|.
« no previous file with comments | « media/base/android/stream_texture_wrapper.h ('k') | media/mojo/clients/mojo_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698