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

Side by Side Diff: content/common/gpu/gpu_video_decode_accelerator.cc

Issue 7065010: Add initialization callback support for Video Decoder PPAPI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix CR comments 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/common/gpu/gpu_video_decode_accelerator.h" 5 #include "content/common/gpu/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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 void GpuVideoDecodeAccelerator::NotifyEndOfBitstreamBuffer( 166 void GpuVideoDecodeAccelerator::NotifyEndOfBitstreamBuffer(
167 int32 bitstream_buffer_id) { 167 int32 bitstream_buffer_id) {
168 if (!Send(new AcceleratedVideoDecoderHostMsg_BitstreamBufferProcessed( 168 if (!Send(new AcceleratedVideoDecoderHostMsg_BitstreamBufferProcessed(
169 route_id_, bitstream_buffer_id))) { 169 route_id_, bitstream_buffer_id))) {
170 DLOG(ERROR) 170 DLOG(ERROR)
171 << "Send(AcceleratedVideoDecoderHostMsg_BitstreamBufferProcessed) " 171 << "Send(AcceleratedVideoDecoderHostMsg_BitstreamBufferProcessed) "
172 << "failed"; 172 << "failed";
173 } 173 }
174 } 174 }
175 175
176 void GpuVideoDecodeAccelerator::NotifyInitializeDone() {
177 if (!Send(new AcceleratedVideoDecoderHostMsg_InitializeDone(route_id_)))
178 LOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_InitializeDone) failed";
179 }
180
176 void GpuVideoDecodeAccelerator::NotifyFlushDone() { 181 void GpuVideoDecodeAccelerator::NotifyFlushDone() {
177 if (!Send(new AcceleratedVideoDecoderHostMsg_FlushDone(route_id_))) 182 if (!Send(new AcceleratedVideoDecoderHostMsg_FlushDone(route_id_)))
178 LOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_FlushDone) failed"; 183 LOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_FlushDone) failed";
179 } 184 }
180 185
181 void GpuVideoDecodeAccelerator::NotifyAbortDone() { 186 void GpuVideoDecodeAccelerator::NotifyAbortDone() {
182 if (!Send(new AcceleratedVideoDecoderHostMsg_AbortDone(route_id_))) 187 if (!Send(new AcceleratedVideoDecoderHostMsg_AbortDone(route_id_)))
183 LOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_AbortDone) failed"; 188 LOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_AbortDone) failed";
184 } 189 }
185 190
186 bool GpuVideoDecodeAccelerator::Send(IPC::Message* message) { 191 bool GpuVideoDecodeAccelerator::Send(IPC::Message* message) {
187 DCHECK(sender_); 192 DCHECK(sender_);
188 return sender_->Send(message); 193 return sender_->Send(message);
189 } 194 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698