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

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

Issue 485103007: Revert of Pass decoded picture size from VDA to client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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/command_line.h" 10 #include "base/command_line.h"
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 SetTextureCleared(picture); 205 SetTextureCleared(picture);
206 } else { 206 } else {
207 DCHECK(io_message_loop_->BelongsToCurrentThread()); 207 DCHECK(io_message_loop_->BelongsToCurrentThread());
208 DebugAutoLock auto_lock(debug_uncleared_textures_lock_); 208 DebugAutoLock auto_lock(debug_uncleared_textures_lock_);
209 DCHECK_EQ(0u, uncleared_textures_.count(picture.picture_buffer_id())); 209 DCHECK_EQ(0u, uncleared_textures_.count(picture.picture_buffer_id()));
210 } 210 }
211 211
212 if (!Send(new AcceleratedVideoDecoderHostMsg_PictureReady( 212 if (!Send(new AcceleratedVideoDecoderHostMsg_PictureReady(
213 host_route_id_, 213 host_route_id_,
214 picture.picture_buffer_id(), 214 picture.picture_buffer_id(),
215 picture.bitstream_buffer_id(), 215 picture.bitstream_buffer_id()))) {
216 picture.visible_rect()))) {
217 DLOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_PictureReady) failed"; 216 DLOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_PictureReady) failed";
218 } 217 }
219 } 218 }
220 219
221 void GpuVideoDecodeAccelerator::NotifyError( 220 void GpuVideoDecodeAccelerator::NotifyError(
222 media::VideoDecodeAccelerator::Error error) { 221 media::VideoDecodeAccelerator::Error error) {
223 if (!Send(new AcceleratedVideoDecoderHostMsg_ErrorNotification( 222 if (!Send(new AcceleratedVideoDecoderHostMsg_ErrorNotification(
224 host_route_id_, error))) { 223 host_route_id_, error))) {
225 DLOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_ErrorNotification) " 224 DLOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_ErrorNotification) "
226 << "failed"; 225 << "failed";
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 return stub_->channel()->Send(message); 506 return stub_->channel()->Send(message);
508 } 507 }
509 508
510 void GpuVideoDecodeAccelerator::SendCreateDecoderReply(IPC::Message* message, 509 void GpuVideoDecodeAccelerator::SendCreateDecoderReply(IPC::Message* message,
511 bool succeeded) { 510 bool succeeded) {
512 GpuCommandBufferMsg_CreateVideoDecoder::WriteReplyParams(message, succeeded); 511 GpuCommandBufferMsg_CreateVideoDecoder::WriteReplyParams(message, succeeded);
513 Send(message); 512 Send(message);
514 } 513 }
515 514
516 } // namespace content 515 } // namespace content
OLDNEW
« no previous file with comments | « content/common/gpu/media/dxva_video_decode_accelerator.cc ('k') | content/common/gpu/media/v4l2_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698