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

Side by Side 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: cleanup Created 9 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/pepper_platform_video_decoder_impl.h" 5 #include "content/renderer/pepper_platform_video_decoder_impl.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 void PlatformVideoDecoderImpl::NotifyEndOfStream() { 118 void PlatformVideoDecoderImpl::NotifyEndOfStream() {
119 client_->NotifyEndOfStream(); 119 client_->NotifyEndOfStream();
120 } 120 }
121 121
122 void PlatformVideoDecoderImpl::NotifyError( 122 void PlatformVideoDecoderImpl::NotifyError(
123 VideoDecodeAccelerator::Error error) { 123 VideoDecodeAccelerator::Error error) {
124 client_->NotifyError(error); 124 client_->NotifyError(error);
125 } 125 }
126 126
127 void PlatformVideoDecoderImpl::ProvidePictureBuffers( 127 void PlatformVideoDecoderImpl::ProvidePictureBuffers(
128 uint32 requested_num_of_buffers, 128 uint32 requested_num_of_buffers, const gfx::Size& dimensions) {
129 const gfx::Size& dimensions, 129 client_->ProvidePictureBuffers(requested_num_of_buffers, dimensions);
130 media::VideoDecodeAccelerator::MemoryType type) {
131 client_->ProvidePictureBuffers(requested_num_of_buffers, dimensions, type);
132 } 130 }
133 131
134 void PlatformVideoDecoderImpl::DismissPictureBuffer(int32 picture_buffer_id) { 132 void PlatformVideoDecoderImpl::DismissPictureBuffer(int32 picture_buffer_id) {
135 client_->DismissPictureBuffer(picture_buffer_id); 133 client_->DismissPictureBuffer(picture_buffer_id);
136 } 134 }
137 135
138 void PlatformVideoDecoderImpl::PictureReady(const media::Picture& picture) { 136 void PlatformVideoDecoderImpl::PictureReady(const media::Picture& picture) {
139 client_->PictureReady(picture); 137 client_->PictureReady(picture);
140 } 138 }
141 139
142 void PlatformVideoDecoderImpl::NotifyEndOfBitstreamBuffer( 140 void PlatformVideoDecoderImpl::NotifyEndOfBitstreamBuffer(
143 int32 bitstream_buffer_id) { 141 int32 bitstream_buffer_id) {
144 client_->NotifyEndOfBitstreamBuffer(bitstream_buffer_id); 142 client_->NotifyEndOfBitstreamBuffer(bitstream_buffer_id);
145 } 143 }
146 144
147 void PlatformVideoDecoderImpl::NotifyFlushDone() { 145 void PlatformVideoDecoderImpl::NotifyFlushDone() {
148 client_->NotifyFlushDone(); 146 client_->NotifyFlushDone();
149 } 147 }
150 148
151 void PlatformVideoDecoderImpl::NotifyAbortDone() { 149 void PlatformVideoDecoderImpl::NotifyAbortDone() {
152 client_->NotifyAbortDone(); 150 client_->NotifyAbortDone();
153 } 151 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698