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

Unified Diff: webkit/plugins/ppapi/ppb_video_decoder_impl.cc

Issue 7021020: Clean up video frame sizes, types in Video Decode API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 5 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: webkit/plugins/ppapi/ppb_video_decoder_impl.cc
diff --git a/webkit/plugins/ppapi/ppb_video_decoder_impl.cc b/webkit/plugins/ppapi/ppb_video_decoder_impl.cc
index 0f887b8a408b7e320e39a0806472cf16b9f7dc4a..2491e4b76dafe5bc92feec4d4668b9f1d28c1a66 100644
--- a/webkit/plugins/ppapi/ppb_video_decoder_impl.cc
+++ b/webkit/plugins/ppapi/ppb_video_decoder_impl.cc
@@ -179,19 +179,13 @@ void PPB_VideoDecoder_Impl::Destroy() {
}
void PPB_VideoDecoder_Impl::ProvidePictureBuffers(
- uint32 requested_num_of_buffers,
- const gfx::Size& dimensions,
- media::VideoDecodeAccelerator::MemoryType type) {
+ uint32 requested_num_of_buffers, const gfx::Size& dimensions) {
if (!ppp_videodecoder_)
return;
- // TODO(vrk): Compiler assert or use switch statement instead of making
- // a blind cast.
Ami GONE FROM CHROMIUM 2011/07/18 18:33:00 Does this TODO not apply elsewhere?
vrk (LEFT CHROMIUM) 2011/07/19 01:26:08 Looks like there are TODOs written in all the othe
- PP_PictureBufferType_Dev out_type =
- static_cast<PP_PictureBufferType_Dev>(type);
PP_Size out_dim = PP_MakeSize(dimensions.width(), dimensions.height());
ppp_videodecoder_->ProvidePictureBuffers(
- instance()->pp_instance(), requested_num_of_buffers, out_dim, out_type);
+ instance()->pp_instance(), requested_num_of_buffers, out_dim);
}
void PPB_VideoDecoder_Impl::PictureReady(const media::Picture& picture) {
@@ -201,10 +195,6 @@ void PPB_VideoDecoder_Impl::PictureReady(const media::Picture& picture) {
PP_Picture_Dev output;
output.picture_buffer_id = picture.picture_buffer_id();
output.bitstream_buffer_id = picture.bitstream_buffer_id();
- output.visible_size = PP_MakeSize(picture.visible_size().width(),
- picture.visible_size().height());
- output.decoded_size = PP_MakeSize(picture.decoded_size().width(),
- picture.decoded_size().height());
ppp_videodecoder_->PictureReady(instance()->pp_instance(), output);
}
« ppapi/c/dev/ppp_video_decoder_dev.h ('K') | « webkit/plugins/ppapi/ppb_video_decoder_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698