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

Unified Diff: media/video/video_decode_accelerator.h

Issue 2507463004: Fix broken SurfaceView usage on < M devices. (Closed)
Patch Set: Created 4 years, 1 month 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: media/video/video_decode_accelerator.h
diff --git a/media/video/video_decode_accelerator.h b/media/video/video_decode_accelerator.h
index 705542f614c124ac9a54bb42caff4defcca9a27f..c14050c6cf3554f06d9666b9db427625b26ef2d2 100644
--- a/media/video/video_decode_accelerator.h
+++ b/media/video/video_decode_accelerator.h
@@ -141,6 +141,11 @@ class MEDIA_EXPORT VideoDecodeAccelerator {
// Whether the client supports deferred initialization.
bool is_deferred_initialization_allowed = false;
+ // 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|.
+ int surface_id = SurfaceManager::kNoSurfaceID;
+
// Coded size of the video frame hint, subject to change.
gfx::Size initial_expected_coded_size = gfx::Size(320, 240);

Powered by Google App Engine
This is Rietveld 408576698