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

Unified Diff: media/video/video_decode_accelerator.h

Issue 170843004: Pass Client pointer in Initialize() for VDA/VEA (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 50e826de Rebase. Created 6 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/video/mock_video_decode_accelerator.h ('k') | media/video/video_encode_accelerator.h » ('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 5212db2c48812bd31d456d2dbf7b65a1447c50ea..b7bc51152615fb367995eae12186dab8b6f9e2ed 100644
--- a/media/video/video_decode_accelerator.h
+++ b/media/video/video_decode_accelerator.h
@@ -86,9 +86,11 @@ class MEDIA_EXPORT VideoDecodeAccelerator
// Initializes the video decoder with specific configuration.
// Parameters:
// |profile| is the video stream's format profile.
+ // |client| is the client of this video decoder. The provided pointer must
+ // be valid until Destroy() is called.
//
// Returns true when command successfully accepted. Otherwise false.
- virtual bool Initialize(VideoCodecProfile profile) = 0;
+ virtual bool Initialize(VideoCodecProfile profile, Client* client) = 0;
// Decodes given bitstream buffer that contains at most one frame. Once
// decoder is done with processing |bitstream_buffer| it will call
« no previous file with comments | « media/video/mock_video_decode_accelerator.h ('k') | media/video/video_encode_accelerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698