| 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_1.h> | 8 #include <d3d11_1.h> |
| 9 #include <d3d9.h> | 9 #include <d3d9.h> |
| 10 #include <initguid.h> | 10 #include <initguid.h> |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 // The |config_changed| parameter is set to true if we detect a change in the | 367 // The |config_changed| parameter is set to true if we detect a change in the |
| 368 // stream. | 368 // stream. |
| 369 HRESULT CheckConfigChanged(IMFSample* sample, bool* config_changed); | 369 HRESULT CheckConfigChanged(IMFSample* sample, bool* config_changed); |
| 370 | 370 |
| 371 // Called when we detect a stream configuration change. We reinitialize the | 371 // Called when we detect a stream configuration change. We reinitialize the |
| 372 // decoder here. | 372 // decoder here. |
| 373 void ConfigChanged(const Config& config); | 373 void ConfigChanged(const Config& config); |
| 374 | 374 |
| 375 uint32_t GetTextureTarget() const; | 375 uint32_t GetTextureTarget() const; |
| 376 | 376 |
| 377 ID3D11Device* D3D11Device() const; |
| 378 |
| 377 // To expose client callbacks from VideoDecodeAccelerator. | 379 // To expose client callbacks from VideoDecodeAccelerator. |
| 378 VideoDecodeAccelerator::Client* client_; | 380 VideoDecodeAccelerator::Client* client_; |
| 379 | 381 |
| 380 base::win::ScopedComPtr<IMFTransform> decoder_; | 382 base::win::ScopedComPtr<IMFTransform> decoder_; |
| 381 | 383 |
| 382 base::win::ScopedComPtr<IDirect3D9Ex> d3d9_; | 384 base::win::ScopedComPtr<IDirect3D9Ex> d3d9_; |
| 383 base::win::ScopedComPtr<IDirect3DDevice9Ex> d3d9_device_ex_; | 385 base::win::ScopedComPtr<IDirect3DDevice9Ex> d3d9_device_ex_; |
| 384 base::win::ScopedComPtr<IDirect3DDeviceManager9> device_manager_; | 386 base::win::ScopedComPtr<IDirect3DDeviceManager9> device_manager_; |
| 385 base::win::ScopedComPtr<IDirect3DQuery9> query_; | 387 base::win::ScopedComPtr<IDirect3DQuery9> query_; |
| 386 | 388 |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 | 566 |
| 565 // Function pointer for the MFCreateDXGIDeviceManager API. | 567 // Function pointer for the MFCreateDXGIDeviceManager API. |
| 566 static CreateDXGIDeviceManager create_dxgi_device_manager_; | 568 static CreateDXGIDeviceManager create_dxgi_device_manager_; |
| 567 | 569 |
| 568 DISALLOW_COPY_AND_ASSIGN(DXVAVideoDecodeAccelerator); | 570 DISALLOW_COPY_AND_ASSIGN(DXVAVideoDecodeAccelerator); |
| 569 }; | 571 }; |
| 570 | 572 |
| 571 } // namespace media | 573 } // namespace media |
| 572 | 574 |
| 573 #endif // MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ | 575 #endif // MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ |
| OLD | NEW |