| 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/gpu/gpu_video_decoder.h" | 5 #include "content/gpu/gpu_video_decoder.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "chrome/gpu/gpu_channel.h" | |
| 9 #include "chrome/gpu/media/fake_gl_video_decode_engine.h" | |
| 10 #include "chrome/gpu/media/fake_gl_video_device.h" | |
| 11 #include "content/common/child_thread.h" | 8 #include "content/common/child_thread.h" |
| 12 #include "content/common/gpu_messages.h" | 9 #include "content/common/gpu_messages.h" |
| 10 #include "content/gpu/gpu_channel.h" |
| 11 #include "content/gpu/media/fake_gl_video_decode_engine.h" |
| 12 #include "content/gpu/media/fake_gl_video_device.h" |
| 13 #include "media/base/data_buffer.h" | 13 #include "media/base/data_buffer.h" |
| 14 #include "media/base/media_switches.h" | 14 #include "media/base/media_switches.h" |
| 15 #include "media/base/video_frame.h" | 15 #include "media/base/video_frame.h" |
| 16 | 16 |
| 17 #if defined(OS_WIN) | 17 #if defined(OS_WIN) |
| 18 #include "chrome/gpu/media/mft_angle_video_device.h" | 18 #include "content/gpu/media/mft_angle_video_device.h" |
| 19 #include "media/video/mft_h264_decode_engine.h" | 19 #include "media/video/mft_h264_decode_engine.h" |
| 20 #include <d3d9.h> | 20 #include <d3d9.h> |
| 21 #endif | 21 #endif |
| 22 | 22 |
| 23 struct GpuVideoDecoder::PendingAllocation { | 23 struct GpuVideoDecoder::PendingAllocation { |
| 24 size_t n; | 24 size_t n; |
| 25 size_t width; | 25 size_t width; |
| 26 size_t height; | 26 size_t height; |
| 27 media::VideoFrame::Format format; | 27 media::VideoFrame::Format format; |
| 28 std::vector<scoped_refptr<media::VideoFrame> >* frames; | 28 std::vector<scoped_refptr<media::VideoFrame> >* frames; |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 } | 418 } |
| 419 } | 419 } |
| 420 | 420 |
| 421 void GpuVideoDecoder::SendReleaseAllVideoFrames() { | 421 void GpuVideoDecoder::SendReleaseAllVideoFrames() { |
| 422 if (!sender_->Send( | 422 if (!sender_->Send( |
| 423 new GpuVideoDecoderHostMsg_ReleaseAllVideoFrames( | 423 new GpuVideoDecoderHostMsg_ReleaseAllVideoFrames( |
| 424 decoder_host_id()))) { | 424 decoder_host_id()))) { |
| 425 LOG(ERROR) << "GpuVideoDecoderMsg_ReleaseAllVideoFrames failed"; | 425 LOG(ERROR) << "GpuVideoDecoderMsg_ReleaseAllVideoFrames failed"; |
| 426 } | 426 } |
| 427 } | 427 } |
| OLD | NEW |