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

Unified Diff: content/renderer/pepper_platform_video_decoder_impl.cc

Issue 6901036: Update VideoDecode PPAPI structs to be consistent with media structures, part 1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing a few parameter types Created 9 years, 8 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: content/renderer/pepper_platform_video_decoder_impl.cc
diff --git a/content/renderer/pepper_platform_video_decoder_impl.cc b/content/renderer/pepper_platform_video_decoder_impl.cc
index d96dc923704ac56befa830acb78b4825011a86a5..e36ba2fdb0e579ef9947d7e7af5a62552558eae0 100644
--- a/content/renderer/pepper_platform_video_decoder_impl.cc
+++ b/content/renderer/pepper_platform_video_decoder_impl.cc
@@ -12,7 +12,6 @@
#include "media/base/video_frame.h"
scherkus (not reviewing) 2011/04/29 20:33:01 I don't think this header file is needed
vrk (LEFT CHROMIUM) 2011/05/03 18:19:58 Done.
using media::BitstreamBuffer;
-using media::VideoDecodeAccelerator;
using media::VideoDecodeAcceleratorCallback;
PlatformVideoDecoderImpl::PlatformVideoDecoderImpl(
@@ -36,7 +35,7 @@ bool PlatformVideoDecoderImpl::Initialize(const std::vector<uint32>& config) {
}
bool PlatformVideoDecoderImpl::Decode(
- BitstreamBuffer* bitstream_buffer,
+ const BitstreamBuffer& bitstream_buffer,
VideoDecodeAcceleratorCallback* callback) {
// TODO(vmr): Implement me!
NOTIMPLEMENTED();
@@ -45,11 +44,10 @@ bool PlatformVideoDecoderImpl::Decode(
}
void PlatformVideoDecoderImpl::AssignPictureBuffer(
- std::vector<VideoDecodeAccelerator::PictureBuffer*> picture_buffers) {
+ const std::vector<media::PictureBuffer>& picture_buffers) {
}
-void PlatformVideoDecoderImpl::ReusePictureBuffer(
- VideoDecodeAccelerator::PictureBuffer* picture_buffer) {
+void PlatformVideoDecoderImpl::ReusePictureBuffer(uint32 picture_buffer_id) {
}
bool PlatformVideoDecoderImpl::Flush(
@@ -83,13 +81,14 @@ void PlatformVideoDecoderImpl::NotifyError(
void PlatformVideoDecoderImpl::ProvidePictureBuffers(
uint32 requested_num_of_buffers,
- const std::vector<uint32>& buffer_properties) {
+ gfx::Size dimensions,
+ media::PictureBuffer::MemoryType type) {
// TODO(vmr): Implement.
NOTIMPLEMENTED();
}
void PlatformVideoDecoderImpl::PictureReady(
- VideoDecodeAccelerator::Picture* picture) {
+ const media::Picture& picture) {
// TODO(vmr): Implement.
NOTIMPLEMENTED();
}

Powered by Google App Engine
This is Rietveld 408576698