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); |