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

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

Issue 793993002: Use InterlockedAdd(0) to get the current state in DXVAVideoDecodeAccelerator::GetState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use static_assert for type size Created 6 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 | 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 1c78425afceb39c31cabd075e3a4368f9a18b811..692f22b06028b6e11ecff2cdbc01a0178451ef81 100644
--- a/content/common/gpu/media/dxva_video_decode_accelerator.h
+++ b/content/common/gpu/media/dxva_video_decode_accelerator.h
@@ -167,7 +167,7 @@ class CONTENT_EXPORT DXVAVideoDecodeAccelerator
// Gets the state of the decoder. Can be called from the main thread and
// the decoder thread. Thread safe.
- State GetState() const;
+ State GetState();
// Worker function for the Decoder Reset functionality. Executes on the
// decoder thread and queues tasks on the main thread as needed.
@@ -224,7 +224,7 @@ class CONTENT_EXPORT DXVAVideoDecodeAccelerator
EGLConfig egl_config_;
// Current state of the decoder.
- State state_;
+ volatile State state_;
MFT_INPUT_STREAM_INFO input_stream_info_;
MFT_OUTPUT_STREAM_INFO output_stream_info_;
« 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