| 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_win.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> | |
| 12 #include <codecapi.h> | 11 #include <codecapi.h> |
| 13 #include <dxgi1_2.h> | 12 #include <dxgi1_2.h> |
| 13 #include <ks.h> |
| 14 #include <mfapi.h> | 14 #include <mfapi.h> |
| 15 #include <mferror.h> | 15 #include <mferror.h> |
| 16 #include <ntverp.h> | 16 #include <ntverp.h> |
| 17 #include <wmcodecdsp.h> | 17 #include <wmcodecdsp.h> |
| 18 | 18 |
| 19 #include "base/base_paths_win.h" | 19 #include "base/base_paths_win.h" |
| 20 #include "base/bind.h" | 20 #include "base/bind.h" |
| 21 #include "base/callback.h" | 21 #include "base/callback.h" |
| 22 #include "base/command_line.h" | 22 #include "base/command_line.h" |
| 23 #include "base/debug/alias.h" | 23 #include "base/debug/alias.h" |
| (...skipping 2260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2284 D3DSURFACE_DESC surface_desc; | 2284 D3DSURFACE_DESC surface_desc; |
| 2285 hr = surface->GetDesc(&surface_desc); | 2285 hr = surface->GetDesc(&surface_desc); |
| 2286 RETURN_ON_HR_FAILURE(hr, "Failed to get surface description", false); | 2286 RETURN_ON_HR_FAILURE(hr, "Failed to get surface description", false); |
| 2287 *width = surface_desc.Width; | 2287 *width = surface_desc.Width; |
| 2288 *height = surface_desc.Height; | 2288 *height = surface_desc.Height; |
| 2289 } | 2289 } |
| 2290 return true; | 2290 return true; |
| 2291 } | 2291 } |
| 2292 | 2292 |
| 2293 } // namespace content | 2293 } // namespace content |
| OLD | NEW |