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

Unified Diff: content/common/gpu/media/dxva_video_decode_accelerator.h

Issue 1427213002: Lock the decoder device (Angle) device from the decoder thread before copying the decoded frame to … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename member variable Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/common/gpu/media/dxva_video_decode_accelerator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/dxva_video_decode_accelerator.h
diff --git a/content/common/gpu/media/dxva_video_decode_accelerator.h b/content/common/gpu/media/dxva_video_decode_accelerator.h
index 706e2dc92d05abfdfedb9fd2c45b983137b6ddea..24f84a5ff2a11a7ff61230439383964cc5d81f9e 100644
--- a/content/common/gpu/media/dxva_video_decode_accelerator.h
+++ b/content/common/gpu/media/dxva_video_decode_accelerator.h
@@ -19,6 +19,7 @@
#include <vector>
#include "base/compiler_specific.h"
+#include "base/macros.h"
#include "base/memory/linked_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/synchronization/lock.h"
@@ -256,6 +257,7 @@ class CONTENT_EXPORT DXVAVideoDecodeAccelerator
base::win::ScopedComPtr<ID3D11Device > d3d11_device_;
base::win::ScopedComPtr<IMFDXGIDeviceManager> d3d11_device_manager_;
base::win::ScopedComPtr<ID3D11Query> d3d11_query_;
+ base::win::ScopedComPtr<ID3D10Multithread> multi_threaded_;
// Ideally the reset token would be a stack variable which is used while
// creating the device manager. However it seems that the device manager
@@ -363,11 +365,16 @@ class CONTENT_EXPORT DXVAVideoDecodeAccelerator
// The GLContext to be used by the decoder.
scoped_refptr<gfx::GLContext> gl_context_;
+ // Set to true if we are sharing ANGLE's device.
+ bool using_angle_device_;
+
// WeakPtrFactory for posting tasks back to |this|.
base::WeakPtrFactory<DXVAVideoDecodeAccelerator> weak_this_factory_;
// Function pointer for the MFCreateDXGIDeviceManager API.
static CreateDXGIDeviceManager create_dxgi_device_manager_;
+
+ DISALLOW_COPY_AND_ASSIGN(DXVAVideoDecodeAccelerator);
};
} // namespace content
« no previous file with comments | « no previous file | content/common/gpu/media/dxva_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698