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

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

Issue 806413004: Plumb allow_overlay flag for video path into cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 // thread when a picture buffer is delivered the first time. 201 // thread when a picture buffer is delivered the first time.
202 if (child_message_loop_->BelongsToCurrentThread()) { 202 if (child_message_loop_->BelongsToCurrentThread()) {
203 SetTextureCleared(picture); 203 SetTextureCleared(picture);
204 } else { 204 } else {
205 DCHECK(io_message_loop_->BelongsToCurrentThread()); 205 DCHECK(io_message_loop_->BelongsToCurrentThread());
206 DebugAutoLock auto_lock(debug_uncleared_textures_lock_); 206 DebugAutoLock auto_lock(debug_uncleared_textures_lock_);
207 DCHECK_EQ(0u, uncleared_textures_.count(picture.picture_buffer_id())); 207 DCHECK_EQ(0u, uncleared_textures_.count(picture.picture_buffer_id()));
208 } 208 }
209 209
210 if (!Send(new AcceleratedVideoDecoderHostMsg_PictureReady( 210 if (!Send(new AcceleratedVideoDecoderHostMsg_PictureReady(
211 host_route_id_, 211 host_route_id_, picture.picture_buffer_id(),
212 picture.picture_buffer_id(), 212 picture.bitstream_buffer_id(), picture.visible_rect(),
213 picture.bitstream_buffer_id(), 213 picture.allow_overlay()))) {
214 picture.visible_rect()))) {
215 DLOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_PictureReady) failed"; 214 DLOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_PictureReady) failed";
216 } 215 }
217 } 216 }
218 217
219 void GpuVideoDecodeAccelerator::NotifyError( 218 void GpuVideoDecodeAccelerator::NotifyError(
220 media::VideoDecodeAccelerator::Error error) { 219 media::VideoDecodeAccelerator::Error error) {
221 if (!Send(new AcceleratedVideoDecoderHostMsg_ErrorNotification( 220 if (!Send(new AcceleratedVideoDecoderHostMsg_ErrorNotification(
222 host_route_id_, error))) { 221 host_route_id_, error))) {
223 DLOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_ErrorNotification) " 222 DLOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_ErrorNotification) "
224 << "failed"; 223 << "failed";
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 return stub_->channel()->Send(message); 513 return stub_->channel()->Send(message);
515 } 514 }
516 515
517 void GpuVideoDecodeAccelerator::SendCreateDecoderReply(IPC::Message* message, 516 void GpuVideoDecodeAccelerator::SendCreateDecoderReply(IPC::Message* message,
518 bool succeeded) { 517 bool succeeded) {
519 GpuCommandBufferMsg_CreateVideoDecoder::WriteReplyParams(message, succeeded); 518 GpuCommandBufferMsg_CreateVideoDecoder::WriteReplyParams(message, succeeded);
520 Send(message); 519 Send(message);
521 } 520 }
522 521
523 } // namespace content 522 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698