OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/gpu/gpu_video_decoder.h" |
| 6 |
5 #include "chrome/common/gpu_messages.h" | 7 #include "chrome/common/gpu_messages.h" |
6 #include "chrome/gpu/gpu_channel.h" | 8 #include "chrome/gpu/gpu_channel.h" |
7 #include "chrome/gpu/gpu_video_decoder.h" | |
8 #include "media/base/data_buffer.h" | 9 #include "media/base/data_buffer.h" |
| 10 #include "media/base/video_frame.h" |
9 | 11 |
10 void GpuVideoDecoder::OnChannelConnected(int32 peer_pid) { | 12 void GpuVideoDecoder::OnChannelConnected(int32 peer_pid) { |
11 } | 13 } |
12 | 14 |
13 void GpuVideoDecoder::OnChannelError() { | 15 void GpuVideoDecoder::OnChannelError() { |
14 } | 16 } |
15 | 17 |
16 void GpuVideoDecoder::OnMessageReceived(const IPC::Message& msg) { | 18 void GpuVideoDecoder::OnMessageReceived(const IPC::Message& msg) { |
17 IPC_BEGIN_MESSAGE_MAP(GpuVideoDecoder, msg) | 19 IPC_BEGIN_MESSAGE_MAP(GpuVideoDecoder, msg) |
18 IPC_MESSAGE_HANDLER(GpuVideoDecoderMsg_Initialize, | 20 IPC_MESSAGE_HANDLER(GpuVideoDecoderMsg_Initialize, |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 } | 309 } |
308 | 310 |
309 void GpuVideoDecoder::SendFillBufferDone( | 311 void GpuVideoDecoder::SendFillBufferDone( |
310 const GpuVideoDecoderOutputBufferParam& frame) { | 312 const GpuVideoDecoderOutputBufferParam& frame) { |
311 if (!channel_->Send( | 313 if (!channel_->Send( |
312 new GpuVideoDecoderHostMsg_FillThisBufferDone(route_id(), frame))) { | 314 new GpuVideoDecoderHostMsg_FillThisBufferDone(route_id(), frame))) { |
313 LOG(ERROR) << "GpuVideoDecoderMsg_FillThisBufferDone failed"; | 315 LOG(ERROR) << "GpuVideoDecoderMsg_FillThisBufferDone failed"; |
314 } | 316 } |
315 } | 317 } |
316 | 318 |
OLD | NEW |