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

Side by Side Diff: content/renderer/pepper_platform_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
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 decoder_->Reset(); 75 decoder_->Reset();
76 } 76 }
77 77
78 void PlatformVideoDecoderImpl::Destroy() { 78 void PlatformVideoDecoderImpl::Destroy() {
79 DCHECK(decoder_); 79 DCHECK(decoder_);
80 decoder_->Destroy(); 80 decoder_->Destroy();
81 client_ = NULL; 81 client_ = NULL;
82 decoder_ = NULL; 82 decoder_ = NULL;
83 } 83 }
84 84
85 void PlatformVideoDecoderImpl::NotifyEndOfStream() {
86 DCHECK(RenderThreadImpl::current());
87 client_->NotifyEndOfStream();
88 }
89
90 void PlatformVideoDecoderImpl::NotifyError( 85 void PlatformVideoDecoderImpl::NotifyError(
91 VideoDecodeAccelerator::Error error) { 86 VideoDecodeAccelerator::Error error) {
92 DCHECK(RenderThreadImpl::current()); 87 DCHECK(RenderThreadImpl::current());
93 client_->NotifyError(error); 88 client_->NotifyError(error);
94 } 89 }
95 90
96 void PlatformVideoDecoderImpl::ProvidePictureBuffers( 91 void PlatformVideoDecoderImpl::ProvidePictureBuffers(
97 uint32 requested_num_of_buffers, 92 uint32 requested_num_of_buffers,
98 const gfx::Size& dimensions) { 93 const gfx::Size& dimensions) {
99 DCHECK(RenderThreadImpl::current()); 94 DCHECK(RenderThreadImpl::current());
(...skipping 22 matching lines...) Expand all
122 117
123 void PlatformVideoDecoderImpl::NotifyFlushDone() { 118 void PlatformVideoDecoderImpl::NotifyFlushDone() {
124 DCHECK(RenderThreadImpl::current()); 119 DCHECK(RenderThreadImpl::current());
125 client_->NotifyFlushDone(); 120 client_->NotifyFlushDone();
126 } 121 }
127 122
128 void PlatformVideoDecoderImpl::NotifyResetDone() { 123 void PlatformVideoDecoderImpl::NotifyResetDone() {
129 DCHECK(RenderThreadImpl::current()); 124 DCHECK(RenderThreadImpl::current());
130 client_->NotifyResetDone(); 125 client_->NotifyResetDone();
131 } 126 }
OLDNEW
« no previous file with comments | « content/renderer/pepper_platform_video_decoder_impl.h ('k') | media/filters/gpu_video_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698