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

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: b0ec4672 Build fixes. 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
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..67a8af1397ecc743d5db4ce4644cf79a58ae2d81 100644
--- a/media/video/video_decode_accelerator.h
+++ b/media/video/video_decode_accelerator.h
@@ -85,10 +85,13 @@ class MEDIA_EXPORT VideoDecodeAccelerator
// Initializes the video decoder with specific configuration.
// Parameters:
+ // |client| is the client of this video decoder. The provided pointer must
+ // be valid for the rest of the lifetime of this decoder, until Destroy()
Ami GONE FROM CHROMIUM 2014/02/24 23:12:40 I'd drop "for the rest of the lifetime of this dec
sheu 2014/02/24 23:48:20 Done.
+ // is called.
// |profile| is the video stream's format profile.
//
// Returns true when command successfully accepted. Otherwise false.
- virtual bool Initialize(VideoCodecProfile profile) = 0;
+ virtual bool Initialize(Client* client, VideoCodecProfile profile) = 0;
Ami GONE FROM CHROMIUM 2014/02/24 23:12:40 In-params usually precede out-params, and POD para
sheu 2014/02/24 23:48:20 My feeling is that |client| is more innate to the
Ami GONE FROM CHROMIUM 2014/02/25 00:01:35 Yeah, I definitely think profile should come first
// Decodes given bitstream buffer that contains at most one frame. Once
// decoder is done with processing |bitstream_buffer| it will call

Powered by Google App Engine
This is Rietveld 408576698