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

Unified Diff: webkit/media/crypto/ppapi/cdm_video_decoder.cc

Issue 12212079: Update Cdm Wrapper and ClearKeyCdm to work with CDM interface version 4. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 | « webkit/media/crypto/ppapi/cdm_video_decoder.h ('k') | webkit/media/crypto/ppapi/cdm_wrapper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/media/crypto/ppapi/cdm_video_decoder.cc
diff --git a/webkit/media/crypto/ppapi/cdm_video_decoder.cc b/webkit/media/crypto/ppapi/cdm_video_decoder.cc
index af9fb8d6a941a8715b0f9928247a798c97f7b01b..935921f501562d6d1bb5a16bb6a59acf17b21bbc 100644
--- a/webkit/media/crypto/ppapi/cdm_video_decoder.cc
+++ b/webkit/media/crypto/ppapi/cdm_video_decoder.cc
@@ -22,11 +22,10 @@
namespace webkit_media {
scoped_ptr<CdmVideoDecoder> CreateVideoDecoder(
- cdm::Allocator* allocator,
- const cdm::VideoDecoderConfig& config) {
+ cdm::Host* host, const cdm::VideoDecoderConfig& config) {
scoped_ptr<CdmVideoDecoder> video_decoder;
#if defined(CLEAR_KEY_CDM_USE_FAKE_VIDEO_DECODER)
- video_decoder.reset(new FakeCdmVideoDecoder(allocator));
+ video_decoder.reset(new FakeCdmVideoDecoder(host));
if (!video_decoder->Initialize(config))
video_decoder.reset();
@@ -34,7 +33,7 @@ scoped_ptr<CdmVideoDecoder> CreateVideoDecoder(
#if defined(CLEAR_KEY_CDM_USE_LIBVPX_DECODER)
if (config.codec == cdm::VideoDecoderConfig::kCodecVp8) {
- video_decoder.reset(new LibvpxCdmVideoDecoder(allocator));
+ video_decoder.reset(new LibvpxCdmVideoDecoder(host));
if (!video_decoder->Initialize(config))
video_decoder.reset();
@@ -44,7 +43,7 @@ scoped_ptr<CdmVideoDecoder> CreateVideoDecoder(
#endif
#if defined(CLEAR_KEY_CDM_USE_FFMPEG_DECODER)
- video_decoder.reset(new FFmpegCdmVideoDecoder(allocator));
+ video_decoder.reset(new FFmpegCdmVideoDecoder(host));
if (!video_decoder->Initialize(config))
video_decoder.reset();
« no previous file with comments | « webkit/media/crypto/ppapi/cdm_video_decoder.h ('k') | webkit/media/crypto/ppapi/cdm_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698