OLD | NEW |
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 "chrome/renderer/gpu_video_decoder_host.h" | 5 #include "content/renderer/gpu_video_decoder_host.h" |
6 | 6 |
7 #include "content/common/gpu_messages.h" | 7 #include "content/common/gpu_messages.h" |
8 #include "content/common/message_router.h" | 8 #include "content/common/message_router.h" |
9 #include "media/base/pipeline.h" | 9 #include "media/base/pipeline.h" |
10 #include "media/video/video_decode_context.h" | 10 #include "media/video/video_decode_context.h" |
11 | 11 |
12 GpuVideoDecoderHost::GpuVideoDecoderHost(MessageRouter* router, | 12 GpuVideoDecoderHost::GpuVideoDecoderHost(MessageRouter* router, |
13 IPC::Message::Sender* ipc_sender, | 13 IPC::Message::Sender* ipc_sender, |
14 int context_route_id, | 14 int context_route_id, |
15 int32 decoder_host_id) | 15 int32 decoder_host_id) |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 } | 390 } |
391 | 391 |
392 DCHECK(found) << "Invalid video frame received"; | 392 DCHECK(found) << "Invalid video frame received"; |
393 if (found && !ipc_sender_->Send( | 393 if (found && !ipc_sender_->Send( |
394 new GpuVideoDecoderMsg_ProduceVideoFrame(decoder_id_, frame_id))) { | 394 new GpuVideoDecoderMsg_ProduceVideoFrame(decoder_id_, frame_id))) { |
395 LOG(ERROR) << "GpuVideoDecoderMsg_ProduceVideoFrame failed"; | 395 LOG(ERROR) << "GpuVideoDecoderMsg_ProduceVideoFrame failed"; |
396 } | 396 } |
397 } | 397 } |
398 | 398 |
399 DISABLE_RUNNABLE_METHOD_REFCOUNT(GpuVideoDecoderHost); | 399 DISABLE_RUNNABLE_METHOD_REFCOUNT(GpuVideoDecoderHost); |
OLD | NEW |