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 "content/renderer/gpu_video_decoder_host.h" | 5 #include "content/renderer/gpu/gpu_video_decoder_host.h" |
6 | 6 |
7 #include "content/common/gpu/gpu_messages.h" | 7 #include "content/common/gpu/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 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 } | 392 } |
393 | 393 |
394 DCHECK(found) << "Invalid video frame received"; | 394 DCHECK(found) << "Invalid video frame received"; |
395 if (found && !ipc_sender_->Send( | 395 if (found && !ipc_sender_->Send( |
396 new GpuVideoDecoderMsg_ProduceVideoFrame(decoder_id_, frame_id))) { | 396 new GpuVideoDecoderMsg_ProduceVideoFrame(decoder_id_, frame_id))) { |
397 LOG(ERROR) << "GpuVideoDecoderMsg_ProduceVideoFrame failed"; | 397 LOG(ERROR) << "GpuVideoDecoderMsg_ProduceVideoFrame failed"; |
398 } | 398 } |
399 } | 399 } |
400 | 400 |
401 DISABLE_RUNNABLE_METHOD_REFCOUNT(GpuVideoDecoderHost); | 401 DISABLE_RUNNABLE_METHOD_REFCOUNT(GpuVideoDecoderHost); |
OLD | NEW |