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

Unified Diff: media/video/video_decode_accelerator.h

Issue 2849043002: Send AndroidOverlay routing token from WMPI to AVDA. (Closed)
Patch Set: rebased Created 3 years, 7 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/renderers/default_renderer_factory.cc ('k') | media/video/video_decode_accelerator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/video/video_decode_accelerator.h
diff --git a/media/video/video_decode_accelerator.h b/media/video/video_decode_accelerator.h
index dea615776e7d1eaf78e6187cb2c45f4ff9d48663..6fe0573fd0bbc24eb23506616c87ef40bdb19fa8 100644
--- a/media/video/video_decode_accelerator.h
+++ b/media/video/video_decode_accelerator.h
@@ -12,6 +12,8 @@
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
+#include "base/optional.h"
+#include "base/unguessable_token.h"
#include "media/base/bitstream_buffer.h"
#include "media/base/cdm_context.h"
#include "media/base/encryption_scheme.h"
@@ -153,8 +155,12 @@ class MEDIA_EXPORT VideoDecodeAccelerator {
// An optional graphics surface that the VDA should render to. For setting
// an output SurfaceView on Android. It's only valid when not equal to
// |kNoSurfaceID|.
+ // TODO(liberato): should this be Optional<> instead?
int surface_id = SurfaceManager::kNoSurfaceID;
+ // An optional routing token for AndroidOverlay.
+ base::Optional<base::UnguessableToken> overlay_routing_token;
+
// Coded size of the video frame hint, subject to change.
gfx::Size initial_expected_coded_size = gfx::Size(320, 240);
@@ -307,7 +313,11 @@ class MEDIA_EXPORT VideoDecodeAccelerator {
// An optional graphics surface that the VDA should render to. For setting
// an output SurfaceView on Android. Passing |kNoSurfaceID| will clear any
// previously set surface in favor of an internally generated texture.
- virtual void SetSurface(int32_t surface_id);
+ // |routing_token| is an optional AndroidOverlay routing token. At most one
+ // should be non-empty.
+ virtual void SetSurface(
+ int32_t surface_id,
+ const base::Optional<base::UnguessableToken>& routing_token);
// Destroys the decoder: all pending inputs are dropped immediately and the
// component is freed. This call may asynchornously free system resources,
« no previous file with comments | « media/renderers/default_renderer_factory.cc ('k') | media/video/video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698