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

Unified Diff: media/gpu/dxva_video_decode_accelerator_win.h

Issue 2585863003: [dxvavda] Convert more users of IMFSample* to ScopedComPtr (Closed)
Patch Set: Created 4 years 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 | media/gpu/dxva_video_decode_accelerator_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/dxva_video_decode_accelerator_win.h
diff --git a/media/gpu/dxva_video_decode_accelerator_win.h b/media/gpu/dxva_video_decode_accelerator_win.h
index 2d990cfe66a27a4477c6a94e21888bb19aea9732..80493396985eefc85183c594d9e2bb6dc6632f74 100644
--- a/media/gpu/dxva_video_decode_accelerator_win.h
+++ b/media/gpu/dxva_video_decode_accelerator_win.h
@@ -207,7 +207,7 @@ class MEDIA_GPU_EXPORT DXVAVideoDecodeAccelerator
// Invoked when we have a valid decoded output sample. Retrieves the D3D
// surface and maintains a copy of it which is passed eventually to the
// client when we have a picture buffer to copy the surface contents to.
- bool ProcessOutputSample(IMFSample* sample,
+ bool ProcessOutputSample(base::win::ScopedComPtr<IMFSample> sample,
const gfx::ColorSpace& color_space);
// Processes pending output samples by copying them to available picture
@@ -316,7 +316,7 @@ class MEDIA_GPU_EXPORT DXVAVideoDecodeAccelerator
ID3D11Texture2D* dest_texture,
base::win::ScopedComPtr<IDXGIKeyedMutex> dest_keyed_mutex,
uint64_t keyed_mutex_value,
- IMFSample* video_frame,
+ base::win::ScopedComPtr<IMFSample> video_frame,
int picture_buffer_id,
int input_buffer_id);
@@ -419,7 +419,7 @@ class MEDIA_GPU_EXPORT DXVAVideoDecodeAccelerator
// Contains information about a decoded sample.
struct PendingSampleInfo {
PendingSampleInfo(int32_t buffer_id,
- IMFSample* sample,
+ base::win::ScopedComPtr<IMFSample> sample,
const gfx::ColorSpace& color_space);
PendingSampleInfo(const PendingSampleInfo& other);
~PendingSampleInfo();
« no previous file with comments | « no previous file | media/gpu/dxva_video_decode_accelerator_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698