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

Side by Side Diff: content/common/gpu/media/gpu_video_decode_accelerator.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/common/gpu/media/gpu_video_decode_accelerator.h" 5 #include "content/common/gpu/media/gpu_video_decode_accelerator.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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 void GpuVideoDecodeAccelerator::PictureReady( 90 void GpuVideoDecodeAccelerator::PictureReady(
91 const media::Picture& picture) { 91 const media::Picture& picture) {
92 if (!Send(new AcceleratedVideoDecoderHostMsg_PictureReady( 92 if (!Send(new AcceleratedVideoDecoderHostMsg_PictureReady(
93 host_route_id_, 93 host_route_id_,
94 picture.picture_buffer_id(), 94 picture.picture_buffer_id(),
95 picture.bitstream_buffer_id()))) { 95 picture.bitstream_buffer_id()))) {
96 DLOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_PictureReady) failed"; 96 DLOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_PictureReady) failed";
97 } 97 }
98 } 98 }
99 99
100 void GpuVideoDecodeAccelerator::NotifyEndOfStream() {
101 if (!Send(new AcceleratedVideoDecoderHostMsg_EndOfStream(host_route_id_)))
102 DLOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_EndOfStream) failed";
103 }
104
105 void GpuVideoDecodeAccelerator::NotifyError( 100 void GpuVideoDecodeAccelerator::NotifyError(
106 media::VideoDecodeAccelerator::Error error) { 101 media::VideoDecodeAccelerator::Error error) {
107 if (init_done_msg_) { 102 if (init_done_msg_) {
108 // If we get an error while we're initializing, NotifyInitializeDone won't 103 // If we get an error while we're initializing, NotifyInitializeDone won't
109 // be called, so we need to send the reply (with an error) here. 104 // be called, so we need to send the reply (with an error) here.
110 init_done_msg_->set_reply_error(); 105 init_done_msg_->set_reply_error();
111 if (!Send(init_done_msg_)) 106 if (!Send(init_done_msg_))
112 DLOG(ERROR) << "Send(init_done_msg_) failed"; 107 DLOG(ERROR) << "Send(init_done_msg_) failed";
113 init_done_msg_ = NULL; 108 init_done_msg_ = NULL;
114 } 109 }
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 236
242 void GpuVideoDecodeAccelerator::NotifyResetDone() { 237 void GpuVideoDecodeAccelerator::NotifyResetDone() {
243 if (!Send(new AcceleratedVideoDecoderHostMsg_ResetDone(host_route_id_))) 238 if (!Send(new AcceleratedVideoDecoderHostMsg_ResetDone(host_route_id_)))
244 DLOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_ResetDone) failed"; 239 DLOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_ResetDone) failed";
245 } 240 }
246 241
247 bool GpuVideoDecodeAccelerator::Send(IPC::Message* message) { 242 bool GpuVideoDecodeAccelerator::Send(IPC::Message* message) {
248 DCHECK(sender_); 243 DCHECK(sender_);
249 return sender_->Send(message); 244 return sender_->Send(message);
250 } 245 }
OLDNEW
« no previous file with comments | « content/common/gpu/media/gpu_video_decode_accelerator.h ('k') | content/common/gpu/media/video_decode_accelerator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698