Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(234)

Side by Side Diff: media/gpu/dxva_video_decode_accelerator_win.h

Issue 2472173002: DXVA: Add --disable-low-latency-dxva to disable low latency decoding (Closed)
Patch Set: IPC Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gpu_preferences.h ('k') | media/gpu/dxva_video_decode_accelerator_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698