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

Side by Side Diff: webkit/plugins/ppapi/ppb_video_decoder_impl.cc

Issue 9186022: Remove VideoDecodeAccelerator::Client::NotifyEndOfStream / PPP_VideoDecoder_Dev::EndOfStream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 11 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
« no previous file with comments | « webkit/plugins/ppapi/ppb_video_decoder_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "webkit/plugins/ppapi/ppb_video_decoder_impl.h" 5 #include "webkit/plugins/ppapi/ppb_video_decoder_impl.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 ppp_videodecoder_->PictureReady(pp_instance(), pp_resource(), &output); 211 ppp_videodecoder_->PictureReady(pp_instance(), pp_resource(), &output);
212 } 212 }
213 213
214 void PPB_VideoDecoder_Impl::DismissPictureBuffer(int32 picture_buffer_id) { 214 void PPB_VideoDecoder_Impl::DismissPictureBuffer(int32 picture_buffer_id) {
215 if (!ppp_videodecoder_) 215 if (!ppp_videodecoder_)
216 return; 216 return;
217 ppp_videodecoder_->DismissPictureBuffer(pp_instance(), pp_resource(), 217 ppp_videodecoder_->DismissPictureBuffer(pp_instance(), pp_resource(),
218 picture_buffer_id); 218 picture_buffer_id);
219 } 219 }
220 220
221 void PPB_VideoDecoder_Impl::NotifyEndOfStream() {
222 if (!ppp_videodecoder_)
223 return;
224 ppp_videodecoder_->EndOfStream(pp_instance(), pp_resource());
225 }
226
227 void PPB_VideoDecoder_Impl::NotifyError( 221 void PPB_VideoDecoder_Impl::NotifyError(
228 media::VideoDecodeAccelerator::Error error) { 222 media::VideoDecodeAccelerator::Error error) {
229 if (!ppp_videodecoder_) 223 if (!ppp_videodecoder_)
230 return; 224 return;
231 225
232 // TODO(vrk): This is assuming VideoDecodeAccelerator::Error and 226 // TODO(vrk): This is assuming VideoDecodeAccelerator::Error and
233 // PP_VideoDecodeError_Dev have identical enum values. There is no compiler 227 // PP_VideoDecodeError_Dev have identical enum values. There is no compiler
234 // assert to guarantee this. We either need to add such asserts or 228 // assert to guarantee this. We either need to add such asserts or
235 // merge these two enums. 229 // merge these two enums.
236 ppp_videodecoder_->NotifyError(pp_instance(), pp_resource(), 230 ppp_videodecoder_->NotifyError(pp_instance(), pp_resource(),
(...skipping 12 matching lines...) Expand all
249 void PPB_VideoDecoder_Impl::NotifyFlushDone() { 243 void PPB_VideoDecoder_Impl::NotifyFlushDone() {
250 RunFlushCallback(PP_OK); 244 RunFlushCallback(PP_OK);
251 } 245 }
252 246
253 void PPB_VideoDecoder_Impl::NotifyInitializeDone() { 247 void PPB_VideoDecoder_Impl::NotifyInitializeDone() {
254 NOTREACHED() << "PlatformVideoDecoder::Initialize() is synchronous!"; 248 NOTREACHED() << "PlatformVideoDecoder::Initialize() is synchronous!";
255 } 249 }
256 250
257 } // namespace ppapi 251 } // namespace ppapi
258 } // namespace webkit 252 } // namespace webkit
OLDNEW
« no previous file with comments | « 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