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

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

Issue 881893002: Revert of Plumb allow_overlay flag for video path into cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 // thread when a picture buffer is delivered the first time. 208 // thread when a picture buffer is delivered the first time.
209 if (child_message_loop_->BelongsToCurrentThread()) { 209 if (child_message_loop_->BelongsToCurrentThread()) {
210 SetTextureCleared(picture); 210 SetTextureCleared(picture);
211 } else { 211 } else {
212 DCHECK(io_message_loop_->BelongsToCurrentThread()); 212 DCHECK(io_message_loop_->BelongsToCurrentThread());
213 DebugAutoLock auto_lock(debug_uncleared_textures_lock_); 213 DebugAutoLock auto_lock(debug_uncleared_textures_lock_);
214 DCHECK_EQ(0u, uncleared_textures_.count(picture.picture_buffer_id())); 214 DCHECK_EQ(0u, uncleared_textures_.count(picture.picture_buffer_id()));
215 } 215 }
216 216
217 if (!Send(new AcceleratedVideoDecoderHostMsg_PictureReady( 217 if (!Send(new AcceleratedVideoDecoderHostMsg_PictureReady(
218 host_route_id_, picture.picture_buffer_id(), 218 host_route_id_,
219 picture.bitstream_buffer_id(), picture.visible_rect(), 219 picture.picture_buffer_id(),
220 picture.allow_overlay()))) { 220 picture.bitstream_buffer_id(),
221 picture.visible_rect()))) {
221 DLOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_PictureReady) failed"; 222 DLOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_PictureReady) failed";
222 } 223 }
223 } 224 }
224 225
225 void GpuVideoDecodeAccelerator::NotifyError( 226 void GpuVideoDecodeAccelerator::NotifyError(
226 media::VideoDecodeAccelerator::Error error) { 227 media::VideoDecodeAccelerator::Error error) {
227 if (!Send(new AcceleratedVideoDecoderHostMsg_ErrorNotification( 228 if (!Send(new AcceleratedVideoDecoderHostMsg_ErrorNotification(
228 host_route_id_, error))) { 229 host_route_id_, error))) {
229 DLOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_ErrorNotification) " 230 DLOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_ErrorNotification) "
230 << "failed"; 231 << "failed";
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 return stub_->channel()->Send(message); 578 return stub_->channel()->Send(message);
578 } 579 }
579 580
580 void GpuVideoDecodeAccelerator::SendCreateDecoderReply(IPC::Message* message, 581 void GpuVideoDecodeAccelerator::SendCreateDecoderReply(IPC::Message* message,
581 bool succeeded) { 582 bool succeeded) {
582 GpuCommandBufferMsg_CreateVideoDecoder::WriteReplyParams(message, succeeded); 583 GpuCommandBufferMsg_CreateVideoDecoder::WriteReplyParams(message, succeeded);
583 Send(message); 584 Send(message);
584 } 585 }
585 586
586 } // namespace content 587 } // namespace content
OLDNEW
« no previous file with comments | « content/common/gpu/media/dxva_video_decode_accelerator.cc ('k') | content/common/gpu/media/vaapi_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698