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

Unified Diff: media/gpu/dxva_picture_buffer_win.h

Issue 2128663003: Correctly handle reusing reset picture buffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months 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_picture_buffer_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/dxva_picture_buffer_win.h
diff --git a/media/gpu/dxva_picture_buffer_win.h b/media/gpu/dxva_picture_buffer_win.h
index 5d09756f1858a483184ff2ca9041e505d02c4ce7..ab2d9fa8171e9c606a2c986d1d6ad0cdf074fa90 100644
--- a/media/gpu/dxva_picture_buffer_win.h
+++ b/media/gpu/dxva_picture_buffer_win.h
@@ -163,6 +163,10 @@ class EGLStreamCopyPictureBuffer : public DXVAPictureBuffer {
private:
EGLStreamKHR stream_;
+ // True if the copy has been completed and it has not been set for reuse
+ // yet.
+ bool frame_in_consumer_ = false;
+
// This ID3D11Texture2D interface pointer is used to hold a reference to the
// MFT decoder texture during the course of a copy operation. This reference
// is released when the copy completes.
« no previous file with comments | « no previous file | media/gpu/dxva_picture_buffer_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698