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

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

Issue 185403020: Make VEA client of command buffer; move sync. IPC to VDA/VEA::Initialize() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 7da5b6ec Rebase. Created 6 years, 9 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
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 7b92277962f78a26fc8ba13ece55536d3eb0c8a4..7bff907ece3e3eae2cd516b2ab7036ba9537911b 100644
--- a/content/common/gpu/media/dxva_video_decode_accelerator.h
+++ b/content/common/gpu/media/dxva_video_decode_accelerator.h
@@ -14,6 +14,7 @@
#include "base/compiler_specific.h"
#include "base/memory/linked_ptr.h"
+#include "base/memory/weak_ptr.h"
#include "base/threading/non_thread_safe.h"
#include "base/win/scoped_comptr.h"
#include "content/common/content_export.h"
@@ -113,9 +114,6 @@ class CONTENT_EXPORT DXVAVideoDecodeAccelerator
// been processed.
void NotifyInputBufferRead(int input_buffer_id);
- // Notifies the client that initialize was completed.
- void NotifyInitializeDone();
-
// Notifies the client that the decoder was flushed.
void NotifyFlushDone();
@@ -206,6 +204,9 @@ class CONTENT_EXPORT DXVAVideoDecodeAccelerator
// Callback to set the correct gl context.
base::Callback<bool(void)> make_context_current_;
+
+ // WeakPtrFactory for posting tasks back to |this|.
+ base::WeakPtrFactory<DXVAVideoDecodeAccelerator> weak_this_factory_;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698