| 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 #ifndef MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ | 5 #ifndef MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ |
| 6 #define MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ | 6 #define MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ |
| 7 | 7 |
| 8 #include <d3d11.h> | 8 #include <d3d11.h> |
| 9 #include <d3d9.h> | 9 #include <d3d9.h> |
| 10 #include <initguid.h> | 10 #include <initguid.h> |
| (...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 // Disallow rebinding WeakReference ownership to a different thread by | 473 // Disallow rebinding WeakReference ownership to a different thread by |
| 474 // keeping a persistent reference. This avoids problems with the | 474 // keeping a persistent reference. This avoids problems with the |
| 475 // thread safety of reaching into this class from multiple threads to | 475 // thread safety of reaching into this class from multiple threads to |
| 476 // attain a WeakPtr. | 476 // attain a WeakPtr. |
| 477 base::WeakPtr<DXVAVideoDecodeAccelerator> weak_ptr_; | 477 base::WeakPtr<DXVAVideoDecodeAccelerator> weak_ptr_; |
| 478 | 478 |
| 479 // Set to true if we are in the context of a Flush operation. Used to prevent | 479 // Set to true if we are in the context of a Flush operation. Used to prevent |
| 480 // multiple flush done notifications being sent out. | 480 // multiple flush done notifications being sent out. |
| 481 bool pending_flush_; | 481 bool pending_flush_; |
| 482 | 482 |
| 483 // Use CODECAPI_AVLowLatencyMode. |
| 484 bool enable_low_latency_; |
| 485 |
| 483 bool share_nv12_textures_; | 486 bool share_nv12_textures_; |
| 484 | 487 |
| 485 // Copy NV12 texture to another NV12 texture. | 488 // Copy NV12 texture to another NV12 texture. |
| 486 bool copy_nv12_textures_; | 489 bool copy_nv12_textures_; |
| 487 | 490 |
| 488 // Defaults to false. Indicates if we should use D3D or DX11 interfaces for | 491 // Defaults to false. Indicates if we should use D3D or DX11 interfaces for |
| 489 // H/W decoding. | 492 // H/W decoding. |
| 490 bool use_dx11_; | 493 bool use_dx11_; |
| 491 | 494 |
| 492 // True when using Microsoft's VP9 HMFT for decoding. | 495 // True when using Microsoft's VP9 HMFT for decoding. |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 | 527 |
| 525 // Function pointer for the MFCreateDXGIDeviceManager API. | 528 // Function pointer for the MFCreateDXGIDeviceManager API. |
| 526 static CreateDXGIDeviceManager create_dxgi_device_manager_; | 529 static CreateDXGIDeviceManager create_dxgi_device_manager_; |
| 527 | 530 |
| 528 DISALLOW_COPY_AND_ASSIGN(DXVAVideoDecodeAccelerator); | 531 DISALLOW_COPY_AND_ASSIGN(DXVAVideoDecodeAccelerator); |
| 529 }; | 532 }; |
| 530 | 533 |
| 531 } // namespace media | 534 } // namespace media |
| 532 | 535 |
| 533 #endif // MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ | 536 #endif // MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ |
| OLD | NEW |