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

Unified Diff: content/renderer/pepper_platform_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: responses to CR 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
« no previous file with comments | « content/renderer/pepper_platform_video_decoder_impl.h ('k') | media/video/picture.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ac34a3bccff8f98deb38c814fcbf1db8146236e5..d59fd18d42363e1da5fb33c54d4e5fe5fa08abf1 100644
--- a/content/renderer/pepper_platform_video_decoder_impl.cc
+++ b/content/renderer/pepper_platform_video_decoder_impl.cc
@@ -56,10 +56,10 @@ void PlatformVideoDecoderImpl::Decode(const BitstreamBuffer& bitstream_buffer) {
decoder_->Decode(bitstream_buffer);
}
-void PlatformVideoDecoderImpl::AssignGLESBuffers(
- const std::vector<media::GLESBuffer>& buffers) {
+void PlatformVideoDecoderImpl::AssignPictureBuffers(
+ const std::vector<media::PictureBuffer>& buffers) {
DCHECK(decoder_);
- decoder_->AssignGLESBuffers(buffers);
+ decoder_->AssignPictureBuffers(buffers);
}
void PlatformVideoDecoderImpl::ReusePictureBuffer(
@@ -96,10 +96,9 @@ void PlatformVideoDecoderImpl::NotifyError(
void PlatformVideoDecoderImpl::ProvidePictureBuffers(
uint32 requested_num_of_buffers,
- const gfx::Size& dimensions,
- media::VideoDecodeAccelerator::MemoryType type) {
+ const gfx::Size& dimensions) {
DCHECK_EQ(RenderThread::current()->message_loop(), MessageLoop::current());
- client_->ProvidePictureBuffers(requested_num_of_buffers, dimensions, type);
+ client_->ProvidePictureBuffers(requested_num_of_buffers, dimensions);
}
void PlatformVideoDecoderImpl::DismissPictureBuffer(int32 picture_buffer_id) {
« no previous file with comments | « content/renderer/pepper_platform_video_decoder_impl.h ('k') | media/video/picture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698