OLD | NEW |
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/dxva_video_decode_accelerator.h" | 5 #include "content/common/gpu/media/dxva_video_decode_accelerator.h" |
6 | 6 |
7 #if !defined(OS_WIN) | 7 #if !defined(OS_WIN) |
8 #error This file should only be built on Windows. | 8 #error This file should only be built on Windows. |
9 #endif // !defined(OS_WIN) | 9 #endif // !defined(OS_WIN) |
10 | 10 |
11 #include <ks.h> | 11 #include <ks.h> |
12 #include <codecapi.h> | 12 #include <codecapi.h> |
13 #include <mfapi.h> | 13 #include <mfapi.h> |
14 #include <mferror.h> | 14 #include <mferror.h> |
15 #include <wmcodecdsp.h> | 15 #include <wmcodecdsp.h> |
16 | 16 |
17 #include "base/base_paths_win.h" | 17 #include "base/base_paths_win.h" |
18 #include "base/bind.h" | 18 #include "base/bind.h" |
19 #include "base/callback.h" | 19 #include "base/callback.h" |
20 #include "base/command_line.h" | 20 #include "base/command_line.h" |
21 #include "base/debug/trace_event.h" | |
22 #include "base/file_version_info.h" | 21 #include "base/file_version_info.h" |
23 #include "base/files/file_path.h" | 22 #include "base/files/file_path.h" |
24 #include "base/logging.h" | 23 #include "base/logging.h" |
25 #include "base/memory/scoped_ptr.h" | 24 #include "base/memory/scoped_ptr.h" |
26 #include "base/memory/shared_memory.h" | 25 #include "base/memory/shared_memory.h" |
27 #include "base/message_loop/message_loop.h" | 26 #include "base/message_loop/message_loop.h" |
28 #include "base/path_service.h" | 27 #include "base/path_service.h" |
| 28 #include "base/trace_event/trace_event.h" |
29 #include "base/win/windows_version.h" | 29 #include "base/win/windows_version.h" |
30 #include "media/video/video_decode_accelerator.h" | 30 #include "media/video/video_decode_accelerator.h" |
31 #include "ui/gl/gl_bindings.h" | 31 #include "ui/gl/gl_bindings.h" |
32 #include "ui/gl/gl_surface_egl.h" | 32 #include "ui/gl/gl_surface_egl.h" |
33 #include "ui/gl/gl_switches.h" | 33 #include "ui/gl/gl_switches.h" |
34 | 34 |
35 namespace { | 35 namespace { |
36 | 36 |
37 // Path is appended on to the PROGRAM_FILES base path. | 37 // Path is appended on to the PROGRAM_FILES base path. |
38 const wchar_t kVPXDecoderDLLPath[] = L"Intel\\Media SDK\\"; | 38 const wchar_t kVPXDecoderDLLPath[] = L"Intel\\Media SDK\\"; |
(...skipping 1581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1620 FROM_HERE, | 1620 FROM_HERE, |
1621 base::Bind(&DXVAVideoDecodeAccelerator::CopySurfaceComplete, | 1621 base::Bind(&DXVAVideoDecodeAccelerator::CopySurfaceComplete, |
1622 weak_this_factory_.GetWeakPtr(), | 1622 weak_this_factory_.GetWeakPtr(), |
1623 src_surface, | 1623 src_surface, |
1624 dest_surface, | 1624 dest_surface, |
1625 picture_buffer_id, | 1625 picture_buffer_id, |
1626 input_buffer_id)); | 1626 input_buffer_id)); |
1627 } | 1627 } |
1628 | 1628 |
1629 } // namespace content | 1629 } // namespace content |
OLD | NEW |