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

Unified Diff: webkit/media/crypto/ppapi/libvpx_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/libvpx_cdm_video_decoder.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/media/crypto/ppapi/libvpx_cdm_video_decoder.cc
diff --git a/webkit/media/crypto/ppapi/libvpx_cdm_video_decoder.cc b/webkit/media/crypto/ppapi/libvpx_cdm_video_decoder.cc
index f06b7298e6dc67880938bb00beceed5a6d9911f7..ef12c22e86eb0b162101a7bddd01e16967534b5d 100644
--- a/webkit/media/crypto/ppapi/libvpx_cdm_video_decoder.cc
+++ b/webkit/media/crypto/ppapi/libvpx_cdm_video_decoder.cc
@@ -50,9 +50,9 @@ static void CopyPlane(const uint8_t* source,
}
#endif // USE_COPYPLANE_WITH_LIBVPX
-LibvpxCdmVideoDecoder::LibvpxCdmVideoDecoder(cdm::Allocator* allocator)
+LibvpxCdmVideoDecoder::LibvpxCdmVideoDecoder(cdm::Host* host)
: is_initialized_(false),
- allocator_(allocator),
+ host_(host),
vpx_codec_(NULL),
vpx_image_(NULL) {
}
@@ -175,9 +175,9 @@ bool LibvpxCdmVideoDecoder::CopyVpxImageTo(cdm::VideoFrame* cdm_video_frame) {
const int space_required = y_size + (uv_size * 2);
DCHECK(!cdm_video_frame->FrameBuffer());
- cdm_video_frame->SetFrameBuffer(allocator_->Allocate(space_required));
+ cdm_video_frame->SetFrameBuffer(host_->Allocate(space_required));
if (!cdm_video_frame->FrameBuffer()) {
- LOG(ERROR) << "CopyVpxImageTo() cdm::Allocator::Allocate failed.";
+ LOG(ERROR) << "CopyVpxImageTo() cdm::Host::Allocate failed.";
return false;
}
cdm_video_frame->FrameBuffer()->SetSize(space_required);
@@ -228,9 +228,9 @@ bool LibvpxCdmVideoDecoder::CopyVpxImageTo(cdm::VideoFrame* cdm_video_frame) {
const int space_required = y_size + u_size + v_size;
DCHECK(!cdm_video_frame->FrameBuffer());
- cdm_video_frame->SetFrameBuffer(allocator_->Allocate(space_required));
+ cdm_video_frame->SetFrameBuffer(host_->Allocate(space_required));
if (!cdm_video_frame->FrameBuffer()) {
- LOG(ERROR) << "CopyVpxImageTo() cdm::Allocator::Allocate failed.";
+ LOG(ERROR) << "CopyVpxImageTo() cdm::Host::Allocate failed.";
return false;
}
cdm_video_frame->FrameBuffer()->SetSize(space_required);
« no previous file with comments | « webkit/media/crypto/ppapi/libvpx_cdm_video_decoder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698